[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/3rdParty/PhpShell/PHP/Shell/ -> Commands.php (sommaire)

(pas de description)

Poids: 72 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

PHP_Shell_Commands:: (3 méthodes):
  registerCommand()
  getCommands()
  getInstance()


Classe: PHP_Shell_Commands  - X-Ref

Commands for the PHP_Shell

Extensions can register their own commands for the shell like the
InlineHelp Extension which provides inline help for all functions

It uses the pattern '? <string>' to catch the cmdline strings.

registerCommand() should be called by the extensions in the register()
method. Its parameters are
- the regex which matches the command
- the object and the method to call if the command is matched
- the human readable command string and the description for the help
registerCommand($regex, $obj, $method, $cmd, $help)   X-Ref
register your own command for the shell

param: string $regex a regex to match against the input line
param: string $obj a Object
param: string $method a method in the object to call of the regex matches
param: string $cmd the command string for the help
param: string $help the full help description for this command

getCommands()   X-Ref
return a copy of the commands array

return: all commands

getInstance()   X-Ref
Pas de description



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7