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

Public Member Functions

 __construct ($domain='studip')
 
 get_domain ()
 
 get ()
 
 set ($version)
 
- Public Member Functions inherited from SchemaVersion
 get ()
 
 set ($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

◆ get()

get ( )

Retrieve the current schema version.

Returns
int schema version

◆ get_domain()

get_domain ( )

Retrieve the domain name of this schema.

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

◆ set()

set (   $version)

Set the current schema version.

Parameters
int$versionnew schema version
Here is the call graph for this function:

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