Class ConsoleShell
Provides a very basic 'interactive' console for CakePHP apps.
- AppShell
- ConsoleShell
Package: Cake\Console\Command
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/ConsoleShell.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/ConsoleShell.php
Properties summary
-
$associations
publicarray
Available binding types -
$badCommandChars
publicarray
Chars that describe invalid commands -
$models
publicarray
Available models
Method Summary
-
_isValidModel() protected
Tells if the specified model is included in the list of available models -
_loadRoutes() protected
Reloads the routes configuration from app/Config/routes.php, and compiles all routes found
-
getOptionParser() public
-
help() public
Prints the help message -
main() public
Override main() to handle action -
startup() public
Override startup of the Shell
Method Detail
_isValidModel() protected ¶
_isValidModel( string $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
true if is an available model, false otherwise
_loadRoutes() protected ¶
_loadRoutes( )
Reloads the routes configuration from app/Config/routes.php, and compiles all routes found
Returns
boolean
True if config reload was a success, otherwise false
True if config reload was a success, otherwise false
Properties detail
$associations ¶
public
array
Available binding types
array('hasOne', 'hasMany', 'belongsTo', 'hasAndBelongsToMany')