MediaWiki  REL1_22
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)
 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.

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:
$infoarray|null

Definition at line 37 of file ForeignDBViaLBRepo.php.

References hasSharedCache(), list, wfSplitWikiID(), and wiki.


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 78 of file ForeignDBViaLBRepo.php.

Returns:
DatabaseBase

Reimplemented from LocalRepo.

Definition at line 47 of file ForeignDBViaLBRepo.php.

References array(), wfGetDB(), and wiki.

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 68 of file ForeignDBViaLBRepo.php.

References hasSharedCache(), and wiki.

Returns:
DatabaseBase

Reimplemented from LocalRepo.

Definition at line 54 of file ForeignDBViaLBRepo.php.

References array(), wfGetDB(), and wiki.


Member Data Documentation

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.


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