MediaWiki  REL1_24
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)
 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

 $dbConn
string $dbFlags
 *
string $dbName
 *
string $dbPassword
 *
string $dbServer
 *
string $dbType
 *
string $dbUser
 *
 $fileFactory = array( 'ForeignDBFile', 'newFromTitle' )
 *
 $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' )
 *
bool $hasSharedCache
 *
string $tablePrefix
 *

Detailed Description

A foreign repository with an accessible MediaWiki database.

Definition at line 29 of file ForeignDBRepo.php.


Constructor & Destructor Documentation

Parameters:
array | null$info

Definition at line 54 of file ForeignDBRepo.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 118 of file ForeignDBRepo.php.

Return information about the repository.

Returns:
array
Since:
1.22

Reimplemented from LocalRepo.

Definition at line 128 of file ForeignDBRepo.php.

Returns:
DatabaseBase

Reimplemented from LocalRepo.

Definition at line 69 of file ForeignDBRepo.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|mixed

Reimplemented from LocalRepo.

Definition at line 107 of file ForeignDBRepo.php.

Returns:
DatabaseBase

Reimplemented from LocalRepo.

Definition at line 90 of file ForeignDBRepo.php.

Returns:
bool

Definition at line 97 of file ForeignDBRepo.php.


Member Data Documentation

ForeignDBRepo::$dbConn [protected]

Definition at line 47 of file ForeignDBRepo.php.

string ForeignDBRepo::$dbFlags [protected]

*

Definition at line 40 of file ForeignDBRepo.php.

string ForeignDBRepo::$dbName [protected]

*

Definition at line 38 of file ForeignDBRepo.php.

string ForeignDBRepo::$dbPassword [protected]

*

Definition at line 36 of file ForeignDBRepo.php.

string ForeignDBRepo::$dbServer [protected]

*

Definition at line 32 of file ForeignDBRepo.php.

string ForeignDBRepo::$dbType [protected]

*

Definition at line 30 of file ForeignDBRepo.php.

string ForeignDBRepo::$dbUser [protected]

*

Definition at line 34 of file ForeignDBRepo.php.

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

*

Reimplemented from LocalRepo.

Definition at line 48 of file ForeignDBRepo.php.

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

*

Reimplemented from LocalRepo.

Definition at line 49 of file ForeignDBRepo.php.

bool ForeignDBRepo::$hasSharedCache [protected]

*

Definition at line 44 of file ForeignDBRepo.php.

string ForeignDBRepo::$tablePrefix [protected]

*

Definition at line 42 of file ForeignDBRepo.php.


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