ZendDbSchema
Schema management for Zend Framework
|
Public Member Functions | |
getContextClasses () | |
create ($useSchema=true) | |
show () | |
rollup () | |
status () |
Static Public Member Functions | |
static | createResource (Zend_Tool_Project_Profile $profile, $useSchema) |
Protected Member Functions | |
_bootstrap () |
Definition at line 29 of file Migration.php.
ZendDbSchema_Tool_Project_Provider_Migration::create | ( | $useSchema = true | ) |
This it the method exposed to the Zend_Tool_Framework client. Once a request is parsed, this method is executed. As you can see, this method allows for pretendability.
string | $name | The name of the migration |
Definition at line 93 of file Migration.php.
|
static |
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 Migration.php.
Referenced by create().
ZendDbSchema_Tool_Project_Provider_Migration::getContextClasses | ( | ) |
This method returns the classes to load as contexts. Since this provider is creating 'ModelFile', it will need this context
Definition at line 78 of file Migration.php.
ZendDbSchema_Tool_Project_Provider_Migration::show | ( | ) |
Show list of existing migrations
Definition at line 116 of file Migration.php.
ZendDbSchema_Tool_Project_Provider_Migration::status | ( | ) |
Show list of existing migrations
Definition at line 185 of file Migration.php.