◆ __construct()
__construct |
( |
|
$domain = 'studip' , |
|
|
|
$branch = 0 |
|
) |
| |
Initialize a new DBSchemaVersion for a given domain. The default domain name is 'studip'.
- Parameters
-
string | $domain | domain name (optional) |
string | $branch | schema branch (optional) |
◆ get()
Retrieve the current schema version.
- Parameters
-
string | $branch | schema branch (optional) |
- Returns
- int schema version
Implements SchemaVersion.
◆ getAllBranches()
Retrieve all branches of this schema.
- Returns
- array all schema branches
Implements SchemaVersion.
◆ getBranch()
Retrieve the branch of this schema.
- Returns
- string schema branch
Implements SchemaVersion.
◆ getDomain()
Retrieve the domain name of this schema.
- Returns
- string domain name
◆ set()
set |
( |
|
$version, |
|
|
|
$branch = 0 |
|
) |
| |
Set the current schema version.
- Parameters
-
int | $version | new schema version |
string | $branch | schema branch (optional) |
Implements SchemaVersion.
The documentation for this class was generated from the following file: