PHP_Shell
[ class tree: PHP_Shell ] [ index: PHP_Shell ] [ all elements ]

File: Commands.php

Source Location: /PHP_Shell-0.3.2/PHP/Shell/Commands.php

Classes:

PHP_Shell_Commands
PHP_Shell_Commands Class

Page Details:

Commands for the PHP_Shell

PHP Version 5

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


Documentation generated on Mon, 12 Dec 2011 23:00:07 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.