MediaWiki
REL1_20
|
A foreign repository with a MediaWiki database accessible via the configured LBFactory. More...
Public Member Functions | |
__construct ($info) | |
getMasterDB () | |
getSharedCacheKey () | |
Get a key on the primary cache for this repository. | |
getSlaveDB () | |
hasSharedCache () | |
Public Attributes | |
$dbName | |
$fileFactory = array( 'ForeignDBFile', 'newFromTitle' ) | |
Factory functions for creating new files Override these in the base class. | |
$fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ) | |
$tablePrefix | |
$wiki | |
Protected Member Functions | |
assertWritableRepo () | |
Throw an exception if this repo is read-only by design. |
A foreign repository with a MediaWiki database accessible via the configured LBFactory.
Definition at line 29 of file ForeignDBViaLBRepo.php.
ForeignDBViaLBRepo::__construct | ( | $ | info | ) |
$info | array|null |
Definition at line 37 of file ForeignDBViaLBRepo.php.
References hasSharedCache(), and wfSplitWikiID().
ForeignDBViaLBRepo::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 78 of file ForeignDBViaLBRepo.php.
Reimplemented from LocalRepo.
Definition at line 47 of file ForeignDBViaLBRepo.php.
References wfGetDB().
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 68 of file ForeignDBViaLBRepo.php.
References hasSharedCache().
Reimplemented from LocalRepo.
Definition at line 54 of file ForeignDBViaLBRepo.php.
References wfGetDB().
Definition at line 58 of file ForeignDBViaLBRepo.php.
Referenced by __construct(), and getSharedCacheKey().
ForeignDBViaLBRepo::$dbName |
Definition at line 30 of file ForeignDBViaLBRepo.php.
ForeignDBViaLBRepo::$fileFactory = array( 'ForeignDBFile', 'newFromTitle' ) |
Factory functions for creating new files Override these in the base class.
Reimplemented from LocalRepo.
Definition at line 31 of file ForeignDBViaLBRepo.php.
ForeignDBViaLBRepo::$fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ) |
Reimplemented from LocalRepo.
Definition at line 32 of file ForeignDBViaLBRepo.php.
ForeignDBViaLBRepo::$tablePrefix |
Definition at line 30 of file ForeignDBViaLBRepo.php.
ForeignDBViaLBRepo::$wiki |
Definition at line 30 of file ForeignDBViaLBRepo.php.