PEAR_Command::registerCommands()

PEAR_Command::registerCommands() -- scan the command directory

Synopsis

require_once 'PEAR/command.php';

bool PEAR_Command::registerCommands ([bool $merge = FALSE [, string $dir = NULL]])

Описание

Scan through the Command directory looking for classes and see what commands they implement.

Параметр

boolean $merge

if FALSE (default), the new list of commands should replace the current one. If TRUE, new entries will be merged with old.

string $dir

where (what directory) to look for classes, defaults to the Command subdirectory of the directory from where this file (__FILE__) is included.

Возвращаемое значение

bool TRUE on success

Throws

Таблица 28-1. Возможные значения PEAR_Error

Error codeError valueMeaningSolution
 ""  

Заметка

Эта функция должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ