public function __construct(DbChangesSettings $settings) { $this->settings = $settings; $dbConn = $settings->getDbConn('cache'); //if there is no cache connection use the standard one if (empty($dbConn)) { $dbConn = $settings->getDbConn('standard'); } parent::__construct($dbConn); //check table if (isset($dbConn['cache_table'])) { $this->cacheTable = (string) $dbConn['cache_table']; } //$this->checkCacheTable(); }
public function isExecutable() { return $this->isExecuted !== true && (DbConnection::canExecuteSuper($this->settings->getDbConn($this->getDb())) || $this->rights != 'super'); }