MediaWiki  REL1_22
ForeignDBRepo Class Reference

A foreign repository with an accessible MediaWiki database. More...

Inheritance diagram for ForeignDBRepo:
Collaboration diagram for ForeignDBRepo:

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

 $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.

Detailed Description

A foreign repository with an accessible MediaWiki database.

Definition at line 29 of file ForeignDBRepo.php.


Constructor & Destructor Documentation

Parameters:
$infoarray|null

Definition at line 42 of file ForeignDBRepo.php.

References hasSharedCache().


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 104 of file ForeignDBRepo.php.

Returns:
DatabaseBase

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().

Returns:
bool|mixed

Reimplemented from LocalRepo.

Definition at line 94 of file ForeignDBRepo.php.

References hasSharedCache().

Returns:
DatabaseBase

Reimplemented from LocalRepo.

Definition at line 77 of file ForeignDBRepo.php.

References getMasterDB().

Returns:
bool

Definition at line 84 of file ForeignDBRepo.php.

Referenced by __construct(), and getSharedCacheKey().


Member Data Documentation

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.


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