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

Public Member Functions

 __construct ($verbose=FALSE)
 
 description ()
 
 up ()
 
 down ()
 
 migrate ($direction)
 
 write ($text="")
 
 announce ($format)
 

Data Fields

 $verbose
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $verbose = FALSE)

Initalize a Migration object (optionally using verbose output).

Parameters
boolean$verboseverbose output (default FALSE)

Member Function Documentation

◆ announce()

announce (   $format)

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:
Here is the caller 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 ( )

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

protected

◆ migrate()

migrate (   $direction)

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

protected

Parameters
string$directionmigration direction (either 'up' or 'down')
Here is the call graph for this function:

◆ up()

up ( )

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

protected

◆ write()

write (   $text = "")

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

private

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

Field Documentation

◆ $verbose

$verbose

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