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

Public Member Functions

 __construct ($domain='studip')
 
 getDomain ()
 
 get ()
 
 contains ($version)
 
 add ($version)
 
 remove ($version)
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $domain = 'studip')

Initialize a new DBSchemaVersion for a given domain. The default domain name is 'studip'.

Parameters
string$domaindomain name (optional)

Member Function Documentation

◆ add()

add (   $version)

Set the current schema version.

Parameters
int$versionnew schema version

Implements SchemaVersion.

Here is the call graph for this function:

◆ contains()

contains (   $version)

Returns whether the given version is already present for the given domain.

Parameters
int$versionVersion number
Returns
bool

Implements SchemaVersion.

◆ get()

get ( )

Retrieve the current schema version.

Returns
int schema version

Implements SchemaVersion.

◆ getDomain()

getDomain ( )

Retrieve the domain name of this schema.

Returns
string domain name
Here is the call graph for this function:

◆ remove()

remove (   $version)

Removes a schema version.

Parameters
int$versionschema version to remove

Implements SchemaVersion.

Here is the call graph for this function:

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