Class DbConfigTask
Task class for creating and updating the database configuration file.
- AppShell
- DbConfigTask
Package: Cake\Console\Command\Task
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/Task/DbConfigTask.php
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/Task/DbConfigTask.php
Properties summary
-
$_defaultConfig
protectedarray
Default configuration settings to use -
$databaseClassName
publicstring
String name of the database config class name. Used for testing.
-
$path
publicstring
path to CONFIG directory
Method Summary
-
_interactive() protected
Interactive interface -
_verify() protected
Output verification message and bake if it looks good -
bake() public
Assembles and writes database.php -
execute() public
Execution method always used for tasks -
getConfig() public
Get a user specified Connection name -
getOptionParser() public
get the option parser -
initialize() public
initialization callback
Method Detail
_verify() protected ¶
_verify( array $config )
Output verification message and bake if it looks good
Parameters
- array $config
Returns
boolean
True if user says it looks good, false otherwise
True if user says it looks good, false otherwise
Properties detail
$_defaultConfig ¶
protected
array
Default configuration settings to use
array( 'name' => 'default', 'datasource' => 'Database/Mysql', 'persistent' => 'false', 'host' => 'localhost', 'login' => 'root', 'password' => 'password', 'database' => 'project_name', 'schema' => null, 'prefix' => null, 'encoding' => null, 'port' => null )
$databaseClassName ¶
public
string
String name of the database config class name. Used for testing.
'DATABASE_CONFIG'