Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 116752 программиста и 2326 роботов. Сейчас ищут 1993 программиста ...
PEAR_Command::registerCommands
Вернуться к: PEAR_Command
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.
Parameter
- 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.
Return value
bool TRUE on success
Throws
| Error code | Error value | Meaning | Solution |
|---|---|---|---|
| " |
Note
This function should be called statically.
Вернуться к: PEAR_Command