◆ __construct()
__construct |
( |
|
$domain = 'studip' | ) |
|
Initialize a new DBSchemaVersion for a given domain. The default domain name is 'studip'.
- Parameters
-
string | $domain | domain name (optional) |
◆ add()
Set the current schema version.
- Parameters
-
int | $version | new schema version |
Implements SchemaVersion.
◆ contains()
Returns whether the given version is already present for the given domain.
- Parameters
-
int | $version | Version number |
- Returns
- bool
Implements SchemaVersion.
◆ get()
Retrieve the current schema version.
- Returns
- int schema version
Implements SchemaVersion.
◆ getDomain()
Retrieve the domain name of this schema.
- Returns
- string domain name
◆ remove()
Removes a schema version.
- Parameters
-
int | $version | schema version to remove |
Implements SchemaVersion.
The documentation for this class was generated from the following file: