コード例 #1
0
ファイル: CacheDb.class.php プロジェクト: CoreylDagget/dbc
 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();
 }
コード例 #2
0
ファイル: Change.class.php プロジェクト: CoreylDagget/dbc
 public function isExecutable()
 {
     return $this->isExecuted !== true && (DbConnection::canExecuteSuper($this->settings->getDbConn($this->getDb())) || $this->rights != 'super');
 }