previousDB_common::getCol() (Previous) (Next) DB_common::getOne()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

DB_common::getListOf()

DB_common::getListOf() – データベースのシステム情報を表示する

Synopsis

array getListOf ( string $type )

Description

ユーザ・使用可能なデータベース・ビュー・関数など、データベースについての 情報を取得します。

Parameter

string $type

取得したい情報の型。 $type に指定できる値はデータベースに依存し tablesdatabasesusersviewfunctions のいずれかです。

Return value

array - 指定したデータを含む数値添字の配列、 あるいは失敗した場合に DB_Error オブジェクトを返します。

Throws

Possible PEAR_Error values
エラーコード エラーメッセージ 原因 対応法
DB_ERROR_UNSUPPORTED not supported 指定した情報が取得できません。 ユーザの権限、およびデータベースがその情報を取得することを サポートしているかどうかを調べます。

Note

This function can not be called statically.

Example

getListOf() の使用法

<?php
// $db という名前の DB オブジェクトを取得しているとします...
$data $db->getListOf('tables');

if (
PEAR::isError($data)) {
    die(
$data->getMessage());
}

echo 
implode("\n"$data);
?>
previousDB_common::getCol() (Previous) (Next) DB_common::getOne()next

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.