| [ Index ] |
|
Code source de SPIP Agora 1.4 |
[Code source] [Imprimer] [Statistiques]
List of commands and what classes they are implemented in.
| Poids: | 398 lignes (12 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
PEAR_Command:: (11 méthodes):
factory()
getFrontendObject()
setFrontendClass()
isIncludeable()
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 |
| getFrontendObject() X-Ref |
| Get instance of frontend object. return: object |
| 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 |
| isIncludeable($path) X-Ref |
param: string $path relative or absolute include path return: boolean |
| 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 : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |