SchemaShell Class Reference

Inheritance diagram for SchemaShell:

Shell Object List of all members.

Public Member Functions

 __create ($Schema, $table=null)
 __run ($contents, $event, $Schema)
 __update ($Schema, $table=null)
 dump ()
 generate ()
 help ()
 initialize ()
 main ()
 run ()
 startup ()
 view ()

Public Attributes

 $__dry = null

Detailed Description

Definition at line 37 of file schema.php.


Member Function Documentation

SchemaShell::__create ( Schema,
table = null 
)

Create database from Schema object Should be called via the run method

private

Definition at line 284 of file schema.php.

References __(), __run(), Object::_stop(), create(), ConnectionManager::getDataSource(), Shell::in(), Shell::out(), and up().

Referenced by run().

SchemaShell::__run ( contents,
event,
Schema 
)

Runs sql from __create() or __update()

private

Definition at line 364 of file schema.php.

References __(), debug(), Shell::err(), ConnectionManager::getDataSource(), Shell::out(), run(), up(), and Configure::write().

Referenced by __create(), and __update().

SchemaShell::__update ( Schema,
table = null 
)

Update database with Schema object Should be called via the run method

private

Definition at line 327 of file schema.php.

References __(), __run(), Object::_stop(), ConnectionManager::getDataSource(), Shell::in(), Shell::out(), run(), and up().

Referenced by run().

SchemaShell::dump (  ) 

Dump Schema object to sql file if first arg == write, file will be written to sql file or it will output sql

public

Definition at line 187 of file schema.php.

References $write, __(), Object::_stop(), Shell::err(), ConnectionManager::getDataSource(), Shell::in(), Shell::out(), pwd(), underscore(), and write().

SchemaShell::generate (  ) 

Read database and Write schema object accepts a connection as first arg or path to save as second arg

public

Definition at line 118 of file schema.php.

References __(), Object::_stop(), Shell::err(), Folder(), Shell::in(), Shell::out(), and params().

SchemaShell::help (  ) 

Displays help contents

public

Reimplemented from Shell.

Definition at line 405 of file schema.php.

References Object::_stop(), Shell::hr(), and Shell::out().

Referenced by main().

SchemaShell::initialize (  ) 

Override initialize

public

Reimplemented from Shell.

Definition at line 50 of file schema.php.

References Shell::_welcome(), Shell::hr(), and Shell::out().

SchemaShell::main (  ) 

Override main

public

Definition at line 93 of file schema.php.

References help().

SchemaShell::run (  ) 

Run database commands: create, update

public

Definition at line 225 of file schema.php.

References Shell::$command, Shell::$name, __(), __create(), __update(), Object::_stop(), a(), create(), Shell::err(), name(), Shell::out(), and params().

Referenced by __run(), and __update().

SchemaShell::startup (  ) 

Override startup

public

Reimplemented from Shell.

Definition at line 60 of file schema.php.

References Shell::$name, $path, name(), params(), and underscore().

SchemaShell::view (  ) 

Read and output contents of schema object path to read as second arg

public

Definition at line 102 of file schema.php.

References __(), Object::_stop(), Shell::err(), exists(), Shell::out(), and read().


Member Data Documentation

SchemaShell::$__dry = null

Definition at line 44 of file schema.php.


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