DbConfigTask Class Reference

Inheritance diagram for DbConfigTask:

Shell Object List of all members.

Public Member Functions

 __interactive ()
 __verify ($config)
 bake ($configs)
 execute ()
 initialize ()

Public Attributes

 $__defaultConfig
 $path = null

Detailed Description

Definition at line 36 of file db_config.php.


Member Function Documentation

DbConfigTask::__interactive (  ) 

Interactive interface

private

Definition at line 80 of file db_config.php.

References $config, Shell::$name, __verify(), a(), bake(), config(), Configuration, Shell::hr(), Shell::in(), low(), name(), Shell::out(), start(), and underscore().

Referenced by execute().

DbConfigTask::__verify ( config  ) 

Output verification message and bake if it looks good

Returns:
boolean True if user says it looks good, false otherwise private

Definition at line 208 of file db_config.php.

References $config, Shell::hr(), Shell::in(), and Shell::out().

Referenced by __interactive().

DbConfigTask::bake ( configs  ) 

Assembles and writes database.php

Parameters:
array $configs Configuration settings to use
Returns:
boolean Success public

Definition at line 255 of file db_config.php.

References $config, $filename, $out, Shell::createFile(), Shell::err(), and name().

Referenced by __interactive().

DbConfigTask::execute (  ) 

Execution method always used for tasks

public

Definition at line 69 of file db_config.php.

References __interactive(), and Object::_stop().

DbConfigTask::initialize (  ) 

Initializes the Shell acts as constructor for subclasses allows configuration of tasks prior to shell execution

public

Reimplemented from Shell.

Definition at line 61 of file db_config.php.

References config(), and params().


Member Data Documentation

DbConfigTask::$__defaultConfig

Initial value:

 array(
        'name' => 'default', 'driver'=> 'mysql', 'persistent'=> 'false', 'host'=> 'localhost',
        'login'=> 'root', 'password'=> 'password', 'database'=> 'project_name',
        'schema'=> null, 'prefix'=> null, 'encoding' => null, 'port' => null
    )

Definition at line 50 of file db_config.php.

DbConfigTask::$path = null

Definition at line 43 of file db_config.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