ZendDbSchema
Schema management for Zend Framework
|
Public Member Functions | |
createResource (Zend_Tool_Project_Profile $profile, $schemaName, $contents, $force=false) | |
getContextClasses () | |
pull ($type= 'table', $name= '', $force=false) | |
push ($type= 'table', $name= '', $force=false) | |
status ($type, $name) |
Protected Member Functions | |
_findfile ($profile, $name) | |
_getSchema ($type, $name) | |
_getFilename ($type, $name) | |
_bootstrap () |
Definition at line 29 of file Schema.php.
|
protected |
Bootstrap
Zend_Tool_Project_Provider_Exception |
Definition at line 267 of file Schema.php.
Referenced by pull(), push(), and status().
|
protected |
Find file
object | $profile | |
string | $name |
Definition at line 92 of file Schema.php.
Referenced by createResource(), push(), and status().
|
protected |
Get filename
string | $type | |
string | $name |
Definition at line 257 of file Schema.php.
Referenced by pull(), push(), and status().
|
protected |
Get schema object
string | $type | |
string | $name |
Zend_Tool_Project_Provider_Exception |
Definition at line 111 of file Schema.php.
Referenced by pull(), push(), and status().
ZendDbSchema_Tool_Project_Provider_Schema::createResource | ( | Zend_Tool_Project_Profile | $profile, |
$schemaName, | |||
$contents, | |||
$force = false |
|||
) |
This method is static for 2 reasons: 1) so that its not identifiable by the framework as something to execute 2) so that other providers can utilize this method to be able to "create" model resources. For example, you might have a larger system that wishes to create models. Instead of proxying through the Zend_Tool_Framework client and calling a command, it can setup the environment an call this method on an already known profile.
Zend_Tool_Project_Profile | $profile | |
string | $modelName |
Definition at line 46 of file Schema.php.
Referenced by pull().
ZendDbSchema_Tool_Project_Provider_Schema::getContextClasses | ( | ) |
This method returns the classes to load as contexts. Since this provider is creating 'ModelFile', it will need this context
Definition at line 77 of file Schema.php.
ZendDbSchema_Tool_Project_Provider_Schema::pull | ( | $type = 'table' , |
|
$name = '' , |
|||
$force = false |
|||
) |
Pull schema to config file
string | $type | table or database |
string | $name | entity name |
boolen | $force | overwrite existing file |
Definition at line 139 of file Schema.php.
ZendDbSchema_Tool_Project_Provider_Schema::push | ( | $type = 'table' , |
|
$name = '' , |
|||
$force = false |
|||
) |
Push schema from config file to database
string | $type | table or database |
string | $name | entity name |
boolen | $force | overwrite existing file |
Definition at line 177 of file Schema.php.
ZendDbSchema_Tool_Project_Provider_Schema::status | ( | $type, | |
$name | |||
) |
Show status
string | $type | |
string | $name |
Zend_Tool_Project_Provider_Exception |
Definition at line 225 of file Schema.php.