PEAR command class, a simple factory class for administrative commands.
How to implement command classes:
The run() function returns a PEAR_CommandResponse object. Use these methods to get information:
int getStatus() Returns PEAR_COMMAND_(SUCCESS|FAILURE|PARTIAL) *_PARTIAL means that you need to issue at least one more command to complete the operation (used for example for validation steps).
string getMessage() Returns a message for the user. Remember, no HTML or other interface-specific markup.
If something unexpected happens, run() returns a PEAR error.
Located in /maintenance/libraries/pear/PEAR/Command.php (line 97)
Get the right object for executing a command.
Get the list of currently supported commands, and what classes implement them.
Get description for a command.
Get instance of frontend object.
Compiles arguments for getopt.
Get help for command.
Get the list of command shortcuts.
Scan through the Command directory looking for classes and see what commands they implement.
Load current frontend class.
Set current frontend.
Documentation generated on Fri, 3 Dec 2004 12:26:20 +0000 by phpDocumentor 1.3.0RC3