MediaWiki  REL1_24
ForeignDBViaLBRepo Class Reference

A foreign repository with a MediaWiki database accessible via the configured LBFactory. More...

Inheritance diagram for ForeignDBViaLBRepo:
Collaboration diagram for ForeignDBViaLBRepo:

List of all members.

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

string $dbName
 *
array $fileFactory = array( 'ForeignDBFile', 'newFromTitle' )
 *
array $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' )
 *
string $tablePrefix
 *
string $wiki
 *

Detailed Description

A foreign repository with a MediaWiki database accessible via the configured LBFactory.

Definition at line 29 of file ForeignDBViaLBRepo.php.


Constructor & Destructor Documentation

Parameters:
array | null$info

Definition at line 43 of file ForeignDBViaLBRepo.php.


Member Function Documentation

Throw an exception if this repo is read-only by design.

This does not and should not check getReadOnlyReason().

Returns:
void
Exceptions:
MWException

Reimplemented from FileRepo.

Definition at line 85 of file ForeignDBViaLBRepo.php.

Return information about the repository.

Returns:
array
Since:
1.22

Reimplemented from LocalRepo.

Definition at line 89 of file ForeignDBViaLBRepo.php.

Returns:
DatabaseBase

Reimplemented from LocalRepo.

Definition at line 53 of file ForeignDBViaLBRepo.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().

Returns:
bool|string

Reimplemented from LocalRepo.

Definition at line 74 of file ForeignDBViaLBRepo.php.

Returns:
DatabaseBase

Reimplemented from LocalRepo.

Definition at line 60 of file ForeignDBViaLBRepo.php.


Member Data Documentation

string ForeignDBViaLBRepo::$dbName [protected]

*

Definition at line 32 of file ForeignDBViaLBRepo.php.

array ForeignDBViaLBRepo::$fileFactory = array( 'ForeignDBFile', 'newFromTitle' ) [protected]

*

Reimplemented from LocalRepo.

Definition at line 36 of file ForeignDBViaLBRepo.php.

array ForeignDBViaLBRepo::$fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ) [protected]

*

Reimplemented from LocalRepo.

Definition at line 38 of file ForeignDBViaLBRepo.php.

string ForeignDBViaLBRepo::$tablePrefix [protected]

*

Definition at line 34 of file ForeignDBViaLBRepo.php.

string ForeignDBViaLBRepo::$wiki [protected]

*

Definition at line 30 of file ForeignDBViaLBRepo.php.


The documentation for this class was generated from the following file: