/**
  * __construct
  */
 public function __construct()
 {
     parent::__construct();
     // Load allowed actions from config file.
     $this->arrAllowedAction = deserialize($GLOBALS['TL_CONFIG']['syncCto_auto_db_updater'], true);
 }
Example #2
0
 /**
  * Load or create the extract
  * 
  * @param string $strTable The table name
  * 
  * @throws \Exception If $strTable is empty
  */
 public function __construct($strTable)
 {
     if ($strTable == '') {
         throw new \Exception('The table name must not be empty');
     }
     parent::__construct();
     $this->strTable = $strTable;
     $this->strFile = TL_ROOT . '/system/cache/sql/' . $strTable . '.php';
     if ($GLOBALS['TL_CONFIG']['bypassCache'] || !file_exists($this->strFile)) {
         $this->createExtract();
     } else {
         include $this->strFile;
         $this->blnIsDbTable = true;
     }
 }