| [ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
PEAR_Command, command pattern class PHP versions 4 and 5
| Author: | Stig Bakken <ssb@php.net> |
| Author: | Greg Beaver <cellog@php.net> |
| Copyright: | 1997-2006 The PHP Group |
| License: | http://www.php.net/license/3_0.txt PHP License 3.0 |
| Version: | CVS: $Id: Command.php,v 1.36.2.1 2006/06/16 13:01:59 pajoye Exp $ |
| Poids: | 412 lignes (13 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
PEAR_Command:: (11 méthodes):
factory()
getObject()
getFrontendObject()
setFrontendClass()
setFrontendType()
registerCommands()
getCommands()
getShortcuts()
getGetoptArgs()
getDescription()
getHelp()
Classe: PEAR_Command - X-Ref
PEAR command class, a simple factory class for administrative| factory($command, &$config) X-Ref |
| Get the right object for executing a command. param: string $command The name of the command param: object $config Instance of PEAR_Config object return: object the command object or a PEAR error |
| getObject($command) X-Ref |
| Pas de description |
| getFrontendObject() X-Ref |
| Get instance of frontend object. return: object|PEAR_Error |
| setFrontendClass($uiclass) X-Ref |
| Load current frontend class. param: string $uiclass Name of class implementing the frontend return: object the frontend object, or a PEAR error |
| setFrontendType($uitype) X-Ref |
| Set current frontend. param: string $uitype Name of the frontend type (for example "CLI") return: object the frontend object, or a PEAR error |
| registerCommands($merge = false, $dir = null) X-Ref |
| Scan through the Command directory looking for classes and see what commands they implement. param: bool (optional) if FALSE (default), the new list of param: string (optional) where (what directory) to look for return: bool TRUE on success, a PEAR error on failure |
| getCommands() X-Ref |
| Get the list of currently supported commands, and what classes implement them. return: array command => implementing class |
| getShortcuts() X-Ref |
| Get the list of command shortcuts. return: array shortcut => command |
| getGetoptArgs($command, &$short_args, &$long_args) X-Ref |
| Compiles arguments for getopt. param: string $command command to get optstring for param: string $short_args (reference) short getopt format param: array $long_args (reference) long getopt format return: void |
| getDescription($command) X-Ref |
| Get description for a command. param: string $command Name of the command return: string command description |
| getHelp($command) X-Ref |
| Get help for command. param: string $command Name of the command to return help for |
| Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
|