ShellDispatcher Class Reference
Public Member Functions | |
| dispatch () | |
| getInput ($prompt, $options=null, $default=null) | |
| help () | |
| parseParams ($params) | |
| ShellDispatcher ($args=array()) | |
| shiftArgs () | |
| stderr ($string) | |
| stdout ($string, $newline=true) | |
Public Attributes | |
| $args = array() | |
| $params = array() | |
| $shell = null | |
| $shellClass = null | |
| $shellCommand = null | |
| $shellName = null | |
| $shellPath = null | |
| $shellPaths = array() | |
| $stderr | |
| $stdin | |
| $stdout | |
Detailed Description
Definition at line 36 of file cake.php.
Member Function Documentation
| ShellDispatcher::dispatch | ( | ) |
Dispatches a CLI request
public
Definition at line 249 of file cake.php.
References $shell, Inflector::camelize(), help(), Configure::read(), shiftArgs(), and Inflector::variable().
| ShellDispatcher::getInput | ( | $ | prompt, | |
| $ | options = null, |
|||
| $ | default = null | |||
| ) |
| ShellDispatcher::help | ( | ) |
Shows console help
public
Definition at line 525 of file cake.php.
References Configure::listObjects(), params(), r(), and Configure::version().
Referenced by dispatch().
| ShellDispatcher::parseParams | ( | $ | params | ) |
| ShellDispatcher::ShellDispatcher | ( | $ | args = array() |
) |
Constructs this ShellDispatcher instance.
- Parameters:
-
array $args the argv.
Definition at line 119 of file cake.php.
References $args.
| ShellDispatcher::shiftArgs | ( | ) |
Removes first argument and shifts other arguments up
- Returns:
- boolean False if there are no arguments public
Definition at line 512 of file cake.php.
Referenced by dispatch().
| ShellDispatcher::stderr | ( | $ | string | ) |
| ShellDispatcher::stdout | ( | $ | string, | |
| $ | newline = true | |||
| ) |
Member Data Documentation
| ShellDispatcher::$args = array() |
| ShellDispatcher::$shell = null |
The documentation for this class was generated from the following file:
- 1.2.x.x/cake/console/cake.php