SchemaShell Class Reference

Public Member Functions | |
| dump () | |
| generate () | |
| help () | |
| initialize () | |
| main () | |
| run () | |
| startup () | |
| view () | |
Detailed Description
Definition at line 38 of file schema.php.
Member Function Documentation
| 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 165 of file schema.php.
References $write, Object::_stop(), Shell::err(), ConnectionManager::getDataSource(), Shell::in(), Shell::out(), and Inflector::underscore().
| 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 110 of file schema.php.
References $file, Object::_stop(), Shell::err(), Shell::in(), Shell::out(), and params().
| SchemaShell::help | ( | ) |
Displays help contents
public
Reimplemented from Shell.
Definition at line 379 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 51 of file schema.php.
References Shell::_welcome(), Shell::hr(), and Shell::out().
| SchemaShell::main | ( | ) |
| SchemaShell::run | ( | ) |
Run database commands: create, update
public
Definition at line 203 of file schema.php.
References Shell::$command, Shell::$name, Object::_stop(), a(), Shell::err(), Shell::out(), and params().
| SchemaShell::startup | ( | ) |
Override startup
public
Reimplemented from Shell.
Definition at line 61 of file schema.php.
References $file, Shell::$name, and params().
| SchemaShell::view | ( | ) |
Read and output contents od schema object path to read as second arg
public
Definition at line 94 of file schema.php.
References Object::_stop(), Shell::err(), and Shell::out().
The documentation for this class was generated from the following file:
- 1.2.x.x/cake/console/libs/schema.php