MediaWiki
REL1_24
|
A foreign repository with an accessible MediaWiki database. More...
Public Member Functions | |
__construct ($info) | |
getInfo () | |
Return information about the repository. | |
getMasterDB () | |
getSharedCacheKey () | |
Get a key on the primary cache for this repository. | |
getSlaveDB () | |
hasSharedCache () | |
Protected Member Functions | |
assertWritableRepo () | |
Throw an exception if this repo is read-only by design. | |
Protected Attributes | |
$dbConn | |
string | $dbFlags |
* | |
string | $dbName |
* | |
string | $dbPassword |
* | |
string | $dbServer |
* | |
string | $dbType |
* | |
string | $dbUser |
* | |
$fileFactory = array( 'ForeignDBFile', 'newFromTitle' ) | |
* | |
$fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ) | |
* | |
bool | $hasSharedCache |
* | |
string | $tablePrefix |
* |
A foreign repository with an accessible MediaWiki database.
Definition at line 29 of file ForeignDBRepo.php.
ForeignDBRepo::__construct | ( | $ | info | ) |
array | null | $info |
Definition at line 54 of file ForeignDBRepo.php.
ForeignDBRepo::assertWritableRepo | ( | ) | [protected] |
Throw an exception if this repo is read-only by design.
This does not and should not check getReadOnlyReason().
MWException |
Reimplemented from FileRepo.
Definition at line 118 of file ForeignDBRepo.php.
Return information about the repository.
Reimplemented from LocalRepo.
Definition at line 128 of file ForeignDBRepo.php.
Get a key on the primary cache for this repository.
Returns false if the repository's cache is not accessible at this site. The parameters are the parts of the key, as for wfMemcKey().
Reimplemented from LocalRepo.
Definition at line 107 of file ForeignDBRepo.php.
Definition at line 97 of file ForeignDBRepo.php.
ForeignDBRepo::$dbConn [protected] |
Definition at line 47 of file ForeignDBRepo.php.
string ForeignDBRepo::$dbFlags [protected] |
*
Definition at line 40 of file ForeignDBRepo.php.
string ForeignDBRepo::$dbName [protected] |
*
Definition at line 38 of file ForeignDBRepo.php.
string ForeignDBRepo::$dbPassword [protected] |
*
Definition at line 36 of file ForeignDBRepo.php.
string ForeignDBRepo::$dbServer [protected] |
*
Definition at line 32 of file ForeignDBRepo.php.
string ForeignDBRepo::$dbType [protected] |
*
Definition at line 30 of file ForeignDBRepo.php.
string ForeignDBRepo::$dbUser [protected] |
*
Definition at line 34 of file ForeignDBRepo.php.
ForeignDBRepo::$fileFactory = array( 'ForeignDBFile', 'newFromTitle' ) [protected] |
ForeignDBRepo::$fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ) [protected] |
bool ForeignDBRepo::$hasSharedCache [protected] |
*
Definition at line 44 of file ForeignDBRepo.php.
string ForeignDBRepo::$tablePrefix [protected] |
*
Definition at line 42 of file ForeignDBRepo.php.