Stud.IP  trunk Revision
Migration Class Reference
Collaboration diagram for Migration:
Collaboration graph

Public Member Functions

 __construct ($verbose=false)
 
 setVerbose ($state=true)
 
 description ()
 
 migrate ($direction)
 

Protected Member Functions

 up ()
 
 down ()
 
 write ($text='')
 
 announce ($format)
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $verbose = false)

Initalize a Migration object (optionally using verbose output).

Parameters
boolean$verboseverbose output (default FALSE)
Here is the call graph for this function:

Member Function Documentation

◆ announce()

announce (   $format)
protected

Print the given formatted string (if verbose output is enabled). Output always includes the migration's class name.

Parameters
string$format,...printf-style format string and parameters
Here is the call graph for this function:

◆ description()

description ( )

Abstract method describing this migration step. This method should be implemented in a migration subclass.

Returns
string migration description

◆ down()

down ( )
protected

Abstract method reverting this migration step. This method should be implemented in a migration subclass.

◆ migrate()

migrate (   $direction)

Perform or revert this migration, depending on the indicated direction.

Parameters
string$directionmigration direction (either 'up' or 'down')

◆ setVerbose()

setVerbose (   $state = true)

Sets the verbose state of this migration.

Parameters
boolean$stateVerbosity state
Here is the caller graph for this function:

◆ up()

up ( )
protected

Abstract method performing this migration step. This method should be implemented in a migration subclass.

◆ write()

write (   $text = '')
protected

Print the given string (if verbose output is enabled).

Parameters
string$texttext to print
Here is the caller graph for this function:

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