ConsoleShell Class Reference

Inheritance diagram for ConsoleShell:

Shell Object List of all members.

Public Member Functions

 __isValidModel ($modelToCheck)
 __loadRoutes ()
 help ()
 initialize ()
 main ($command=null)

Public Attributes

 $associations = array('hasOne', 'hasMany', 'belongsTo', 'hasAndBelongsToMany')
 $badCommandChars = array('$', ';')
 $models = array()

Detailed Description

Definition at line 31 of file console.php.


Member Function Documentation

ConsoleShell::__isValidModel ( modelToCheck  ) 

Tells if the specified model is included in the list of available models

Parameters:
string $modelToCheck
Returns:
boolean true if is an available model, false otherwise private

Definition at line 308 of file console.php.

Referenced by main().

ConsoleShell::__loadRoutes (  ) 

Reloads the routes configuration from config/routes.php, and compiles all routes found

Returns:
boolean True if config reload was a success, otherwise false private

Definition at line 318 of file console.php.

References Router::getInstance().

Referenced by initialize(), and main().

ConsoleShell::help (  ) 

Prints the help message

public

Reimplemented from Shell.

Definition at line 82 of file console.php.

References main().

Referenced by main().

ConsoleShell::initialize (  ) 

Override intialize of the Shell

public

Reimplemented from Shell.

Definition at line 58 of file console.php.

References __loadRoutes(), camelize(), App::import(), Configure::listObjects(), Shell::out(), and r().

ConsoleShell::main ( command = null  ) 

Override main() to handle action

public

Definition at line 90 of file console.php.

References Shell::$command, __isValidModel(), __loadRoutes(), a(), config(), e(), Set::extract(), Router::getInstance(), help(), Shell::hr(), Shell::in(), name(), Shell::out(), and Router::parse().

Referenced by help().


Member Data Documentation

ConsoleShell::$associations = array('hasOne', 'hasMany', 'belongsTo', 'hasAndBelongsToMany')

Definition at line 38 of file console.php.

ConsoleShell::$badCommandChars = array('$', ';')

Definition at line 45 of file console.php.

ConsoleShell::$models = array()

Definition at line 52 of file console.php.


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 00:30:55 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7