MediaWiki
1.28.0
|
Class to handle database/prefix specification for IDatabase domains. More...
Public Member Functions | |
__construct ($database, $schema, $prefix) | |
__toString () | |
equals ($other) | |
getDatabase () | |
getId () | |
getSchema () | |
getTablePrefix () | |
Static Public Member Functions | |
static | newFromId ($domain) |
static | newUnspecified () |
Private Member Functions | |
convertToString () | |
Static Private Member Functions | |
static | decode ($encoded) |
static | encode ($decoded) |
Private Attributes | |
string null | $database |
string | $equivalentString |
Cache of convertToString() More... | |
string | $prefix |
string null | $schema |
Class to handle database/prefix specification for IDatabase domains.
Definition at line 25 of file DatabaseDomain.php.
DatabaseDomain::__construct | ( | $database, | |
$schema, | |||
$prefix | |||
) |
DatabaseDomain::__toString | ( | ) |
|
private |
|
staticprivate |
Definition at line 175 of file DatabaseDomain.php.
|
staticprivate |
Definition at line 157 of file DatabaseDomain.php.
DatabaseDomain::equals | ( | $other | ) |
DatabaseDomain | string | $other |
Definition at line 98 of file DatabaseDomain.php.
DatabaseDomain::getDatabase | ( | ) |
Definition at line 113 of file DatabaseDomain.php.
References $database.
DatabaseDomain::getId | ( | ) |
Definition at line 134 of file DatabaseDomain.php.
References $equivalentString, and convertToString().
Referenced by __toString(), equals(), and DBConnRef\getDomainID().
DatabaseDomain::getSchema | ( | ) |
Definition at line 120 of file DatabaseDomain.php.
References $schema.
DatabaseDomain::getTablePrefix | ( | ) |
|
static |
DatabaseDomain | string | $domain | Result of DatabaseDomain::toString() |
Definition at line 60 of file DatabaseDomain.php.
References $database, $prefix, $schema, and list.
Referenced by LBFactory\__construct(), LoadBalancer\__construct(), LBFactoryMulti\getDBNameAndPrefix(), LoadBalancer\openForeignConnection(), and DatabaseDomainTest\testNewFromId().
|
static |
Definition at line 90 of file DatabaseDomain.php.
Referenced by FakeDatabase\__construct(), DatabaseTestHelper\__construct(), FakeDatabaseMysqlBase\__construct(), LBFactory\__construct(), LoadBalancer\__construct(), Database\__construct(), and Database\tablePrefix().
|
private |
Definition at line 27 of file DatabaseDomain.php.
Referenced by __construct(), convertToString(), getDatabase(), and newFromId().
|
private |
|
private |
Definition at line 31 of file DatabaseDomain.php.
Referenced by __construct(), convertToString(), getTablePrefix(), and newFromId().
|
private |
Definition at line 29 of file DatabaseDomain.php.
Referenced by __construct(), convertToString(), getSchema(), and newFromId().