Class WFShell

Description

The phocoa shell is an interactive PHP shell for working with your phocoa applications.

The phocoa shell includes readline support with tab-completion and history.

To start the shell, simply run "phocoa shell" from your command line. The shell is automatically bootstrapped into your phocoa application, so you can instantiate your classes and work with them immediately.

For each command you enter, the result will be displayed and also assigned to $_.

If you have a tags file for your project, keep it in APP_ROOT and the shell will also include autocomplete support from your project.

Use ctl-d to exit the shell, or enter the command "exit".

Located in /framework/util/shell.php (line 21)

WFObject
   |
   --WFShell
Variable Summary
Method Summary
static void main ()
WFShell __construct ()
void doCommand ( $command)
void historyFile ()
void prompt ()
void readline ()
void readlineCallback ( $command)
void readlineCompleter ( $str)
Variables
mixed $autocompleteList = array() (line 26)
  • access: protected
mixed $lastCommand = NULL (line 24)
  • access: protected
mixed $lastResult = NULL (line 23)
  • access: protected
mixed $prompt = '> ' (line 25)
  • access: protected
Methods
static method main (line 126)
  • access: public
static void main ()
Constructor __construct (line 28)
  • access: public
WFShell __construct ()

Redefinition of:
WFObject::__construct()
doCommand (line 73)
  • access: public
void doCommand ( $command)
  • $command
historyFile (line 57)
  • access: public
void historyFile ()
prompt (line 52)
  • access: public
void prompt ()
readline (line 107)
  • access: public
void readline ()
readlineCallback (line 62)
  • access: public
void readlineCallback ( $command)
  • $command
readlineCompleter (line 68)
  • access: public
void readlineCompleter ( $str)
  • $str

Inherited Methods

Inherited From WFObject

WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::setValuesForKeys()
WFObject::validatedSetValueForKey()
WFObject::validatedSetValueForKeyPath()
WFObject::validateObject()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForStaticKey()
WFObject::valueForStaticKeyPath()
WFObject::valueForTargetAndKeyPath()
WFObject::valueForUndefinedKey()
WFObject::valueForUndefinedStaticKey()
WFObject::valuesForKeyPaths()
WFObject::valuesForKeys()
WFObject::_valueForStaticKey()
WFObject::__toString()

Documentation generated on Thu, 14 May 2009 16:19:42 -0400 by phpDocumentor 1.4.2