PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
array getListOf (string $type)
array getListOf
Retrieves information about database users, avaible databases, views and functions.
type of requested info, valid values for $type are database dependent, ie: tables, databases, users, view, functions
array - an ordered array containing the requested data or a DB_Error object on failure
Table 33-1. Possible PEAR_Error values
This function can not be called statically.
Example 33-1. Using getListOf()
<?php // Once you have a valid DB object named $db... $data = $db->getListOf('tables'); if (PEAR::isError($data)) { die($data->getMessage()); } echo implode("\n", $data); ?>