示例#1
0
 /**
  * Constructor
  * @param bool $debugEnabled
  */
 public function __construct($debugEnabled = false)
 {
     parent::__construct();
     $this->debugEnabled = $debugEnabled;
     $this->table = $this->db->prefix . 'gg_photos_settings';
     if ($this->debugEnabled) {
         $tables = array_keys($this->db->get_results('SHOW TABLES', OBJECT_K));
         if (!in_array($this->table, $tables)) {
             wp_die(sprintf('Invalid table %s specified in the model %s', $this->table, __CLASS__));
         }
     }
 }
示例#2
0
 /**
  * Constructor
  */
 public function __construct($debugEnabled = false)
 {
     parent::__construct();
     $this->debugEnabled = (bool) $debugEnabled;
     $this->table = $this->db->prefix . 'gg_photos';
 }
 /**
  * Constructor
  */
 public function __construct($debugEnabled = false)
 {
     parent::__construct();
     $this->table = $this->db->prefix . 'rs_folders';
     $this->debugEnabled = (bool) $debugEnabled;
 }