Provides a very basic 'interactive' console for CakePHP apps.
$_finished
protected mixed
$_methodPatterns
protected array
$associations
public array
$badCommandChars
public array
$models
public array
Reloads the routes configuration from app/Config/routes.php, and compiles all routes found
_bind( mixed $command )
Bind an association
$command
_columns( mixed $command )
Show the columns for a model
$command
_find( mixed $command )
Perform a find
$command
_isValidModel( string $modelToCheck )
Tells if the specified model is included in the list of available models
$modelToCheck
_loadRoutes( )
Reloads the routes configuration from app/Config/routes.php, and compiles all routes found
_method( string $command )
Determine the method to process the current command
$command
_routeToArray( mixed $command )
Parse a string URL and show as an array
$command
_routeToString( mixed $command )
Parse an array URL and show the equivalent URL as a string
$command
_save( mixed $command )
Save a record
$command
_unbind( mixed $command )
Unbind an association
$command
getOptionParser( )
Gets the option parser instance and configures it.
ConsoleOptionParser
main( string $command null )
Override main() to handle action
$command
optional null protected mixed
_finished
This shell is perpetual, setting this property to true exits the process
false
protected array
_methodPatterns
array( 'help' => '/^(help|\?)/', '_exit' => '/^(quit|exit)/', '_models' => '/^models/i', '_bind' => '/^(\w+) bind (\w+) (\w+)/', '_unbind' => '/^(\w+) unbind (\w+) (\w+)/', '_find' => '/.+->find/', '_save' => '/.+->save/', '_columns' => '/^(\w+) columns/', '_routesReload' => '/^routes\s+reload/i', '_routesShow' => '/^routes\s+show/i', '_routeToString' => '/^route\s+(\(.*\))$/i', '_routeToArray' => '/^route\s+(.*)$/i', )
public array
Available binding types
array('hasOne', 'hasMany', 'belongsTo', 'hasAndBelongsToMany')
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.9/class-ConsoleShell.html