/** * @param $info array|null */ function __construct($info) { parent::__construct($info); $this->wiki = $info['wiki']; list($this->dbName, $this->tablePrefix) = wfSplitWikiID($this->wiki); $this->hasSharedCache = $info['hasSharedCache']; }
function __construct($info) { parent::__construct($info); // Required settings $this->directory = $info['directory']; $this->url = $info['url']; $this->hashLevels = $info['hashLevels']; if (isset($info['cache'])) { $this->cache = getcwd() . '/images/' . $info['cache']; } }
/** * @param $info array|null */ function __construct( $info ) { parent::__construct( $info ); $this->dbType = $info['dbType']; $this->dbServer = $info['dbServer']; $this->dbUser = $info['dbUser']; $this->dbPassword = $info['dbPassword']; $this->dbName = $info['dbName']; $this->dbFlags = $info['dbFlags']; $this->tablePrefix = $info['tablePrefix']; $this->hasSharedCache = $info['hasSharedCache']; }