MediaWiki
REL1_22
|
A foreign repository with an accessible MediaWiki database. More...
Public Member Functions | |
__construct ($info) | |
getMasterDB () | |
getSharedCacheKey () | |
Get a key on the primary cache for this repository. | |
getSlaveDB () | |
hasSharedCache () | |
Public Attributes | |
$dbConn | |
$dbFlags | |
$dbName | |
$dbPassword | |
$dbServer | |
$dbType | |
$dbUser | |
$fileFactory = array( 'ForeignDBFile', 'newFromTitle' ) | |
Factory functions for creating new files Override these in the base class. | |
$fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ) | |
$hasSharedCache | |
$tablePrefix | |
Protected Member Functions | |
assertWritableRepo () | |
Throw an exception if this repo is read-only by design. |
A foreign repository with an accessible MediaWiki database.
Definition at line 29 of file ForeignDBRepo.php.
ForeignDBRepo::__construct | ( | $ | info | ) |
$info | array|null |
Definition at line 42 of file ForeignDBRepo.php.
References hasSharedCache().
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 104 of file ForeignDBRepo.php.
Reimplemented from LocalRepo.
Definition at line 57 of file ForeignDBRepo.php.
References array(), and DatabaseBase\factory().
Referenced by getSlaveDB().
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 94 of file ForeignDBRepo.php.
References hasSharedCache().
Reimplemented from LocalRepo.
Definition at line 77 of file ForeignDBRepo.php.
References getMasterDB().
Definition at line 84 of file ForeignDBRepo.php.
Referenced by __construct(), and getSharedCacheKey().
ForeignDBRepo::$dbConn |
Definition at line 35 of file ForeignDBRepo.php.
ForeignDBRepo::$dbFlags |
Definition at line 31 of file ForeignDBRepo.php.
ForeignDBRepo::$dbName |
Definition at line 31 of file ForeignDBRepo.php.
ForeignDBRepo::$dbPassword |
Definition at line 31 of file ForeignDBRepo.php.
ForeignDBRepo::$dbServer |
Definition at line 31 of file ForeignDBRepo.php.
ForeignDBRepo::$dbType |
Definition at line 31 of file ForeignDBRepo.php.
ForeignDBRepo::$dbUser |
Definition at line 31 of file ForeignDBRepo.php.
ForeignDBRepo::$fileFactory = array( 'ForeignDBFile', 'newFromTitle' ) |
Factory functions for creating new files Override these in the base class.
Reimplemented from LocalRepo.
Definition at line 36 of file ForeignDBRepo.php.
ForeignDBRepo::$fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ) |
Reimplemented from LocalRepo.
Definition at line 37 of file ForeignDBRepo.php.
ForeignDBRepo::$hasSharedCache |
Definition at line 31 of file ForeignDBRepo.php.
ForeignDBRepo::$tablePrefix |
Definition at line 31 of file ForeignDBRepo.php.