69 parent::__construct( $info );
70 $this->dbType = $info[
'dbType'];
71 $this->dbServer = $info[
'dbServer'];
72 $this->dbUser = $info[
'dbUser'];
73 $this->dbPassword = $info[
'dbPassword'];
74 $this->dbName = $info[
'dbName'];
75 $this->dbFlags = $info[
'dbFlags'];
76 $this->tablePrefix = $info[
'tablePrefix'];
84 if ( !isset( $this->dbConn ) ) {
134 $args = func_get_args();
143 throw new MWException( static::class .
': write operations are not supported.' );
wfForeignMemcKey( $db, $prefix,... $args)
Make a cache key for a foreign DB.
getInfo()
Return information about the repository.
A foreign repository with an accessible MediaWiki database.
getSharedCacheKey()
Get a key on the primary cache for this repository.
getInfo()
Return information about the repository.
assertWritableRepo()
Throw an exception if this repo is read-only by design.
callable $fileFromRowFactory
A repository that stores files in the local filesystem and registers them in the wiki's own database.