bool PEAR_Command::registerCommands (
bool $merge
= false
, string $dir
= null
)
Scan through the Command directory looking for classes and see what commands they implement.
$merge
if FALSE (default), the new list of commands should replace the current one. If TRUE, new entries will be merged with old.
$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
Error code | Error value | Meaning | Solution |
---|---|---|---|
" |
This function should be called statically.