public function __construct($type) { $this->type = $type; $this->database = WP_Backup_Registry::db(); $this->config = WP_Backup_Registry::config(); $this->set_wait_timeout(); }
public function __construct() { $this->db = WP_Backup_Registry::db(); $ret = $this->db->get_results("SELECT * FROM {$this->db->prefix}wpb2d_processed_files"); if (is_array($ret)) { $this->processed_files = $ret; } }
public function __construct() { $this->db = WP_Backup_Registry::db(); $result = $this->db->get_results("SELECT * FROM {$this->db->prefix}wpb2d_excluded_files WHERE isdir = 0"); foreach ($result as $value) { $this->excluded_files[] = $value->file; } $result = $this->db->get_results("SELECT * FROM {$this->db->prefix}wpb2d_excluded_files WHERE isdir = 1"); foreach ($result as $value) { $this->excluded_dirs[] = $value->file; } }
public static function setDatabase($db) { self::$db = $db; }
public function __construct() { $this->db = WP_Backup_Registry::db(); }