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();
135 array_unshift(
$args, $this->dbName, $this->tablePrefix );
137 return call_user_func_array(
'wfForeignMemcKey',
$args );
144 throw new MWException( static::class .
': write operations are not supported.' );
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.