ZendDbSchema
Schema management for Zend Framework
 All Classes Namespaces Functions Pages
ZendDbSchema_Tool_Project_Provider_Migration Class Reference
Collaboration diagram for ZendDbSchema_Tool_Project_Provider_Migration:

List of all members.

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 ()

Detailed Description

Definition at line 29 of file Migration.php.


Member Function Documentation

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.

Parameters:
string$nameThe name of the migration

Definition at line 93 of file Migration.php.

Here is the call graph for this function:

static ZendDbSchema_Tool_Project_Provider_Migration::createResource ( Zend_Tool_Project_Profile  $profile,
  $useSchema 
)
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.

Parameters:
Zend_Tool_Project_Profile$profile
string$modelName
Returns:
Zend_Tool_Project_Profile_Resource

Definition at line 46 of file Migration.php.

Referenced by create().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Returns:
array

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.

Here is the call graph for this function:

ZendDbSchema_Tool_Project_Provider_Migration::status ( )

Show list of existing migrations

Definition at line 185 of file Migration.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file: