/** * Fetch the data provided in this class * */ public function __get($strKey) { switch ($strKey) { case 'user_tz': return $this->userTimeZone->getName(); break; case 'server_tz': return $this->get_serverTimezone()->getName(); break; case 'utz_tz': return $this->utcTimeZone->getName(); break; case 'timezones': return $this->fetch_timezones(); break; case 'time': return $this->gen_time(); break; case 'minDate': return $this->gen_time("1980-01-01 0:0:0"); break; case 'maxDate': return $this->gen_time("2038-01-19 0:0:0"); break; } return parent::__get($strKey); }
public function __destruct() { if ($this->config_modified) { $this->config_save(); } parent::__destruct(); }
public function __destruct() { $this->save_page_objects(); $this->save_user_presets(); parent::__destruct(); }
public function __destruct() { $this->rli->add_cache_data('item', $this->items); parent::__destruct(); }
public function __destruct() { $this->rli->add_cache_data('raid', $this->raids); $this->rli->add_cache_data('data_raid', $this->data); parent::__destruct(); }
public function __destruct() { $this->close(); parent::__destruct(); }
public function __destruct() { if (is_array($this->unused) && count($this->unused) > 0) { $this->pfh->putContent($this->pfh->FilePath('unused.lang', 'eqdkp'), serialize($this->unused)); } parent::__destruct(); }
public function __destruct() { foreach ($this->ttls as $apa_id => $data) { foreach ($data as $cache_date => $ttl) { $this->pdc->put('apa_' . $apa_id . '_' . $cache_date, $this->cached_data[$apa_id][$cache_date], $ttl); } } $this->pdc->put('apa_update_table', $this->needs_update, 15768000); //cache half a year unset($this->cached_data); unset($this->ttls); parent::__destruct(); }
public function __destruct() { $this->db->query("TRUNCATE __raidlogimport_cache;"); $sql = "INSERT INTO __raidlogimport_cache\n\t\t\t\t(cache_class, cache_data)\n\t\t\t\tVALUES "; if ($this->data) { foreach ($this->data as $type => $data) { $data = $this->cconfig->get('enable_gzip') ? gzcompress(serialize($data)) : serialize($data); $sqls[] = "('" . $type . "', " . $this->db->escapeString($data) . ")"; } $sql .= implode(", ", $sqls) . ";"; $this->db->query($sql); } parent::__destruct(); }
/** * Close the database connection */ public function __destruct() { $this->disconnect(); parent::__destruct(); }
public function __get($key) { return isset($this->fitems[$key]) ? $this->fitems[$key] : parent::__get($key); }
public function __get($name) { switch ($name) { case 'error': return $this->error; default: return parent::__get($name); } }
public function __get($name) { if (in_array($name, $this->types)) { $this->{$name} = array(); } return parent::__get($name); }
public function __destruct() { unset($this->parser); unset($this->avail_parser); parent::__destruct(); }
public function __destruct() { $this->_data = array(); $this->states = array(); parent::__destruct(); }
public function __destruct() { $this->rli->add_cache_data('member', $this->members); parent::__destruct(); }
public function __destruct() { unset($this->config); parent::__destruct(); }
public function __destruct() { //close the socket fclose($this->fp); parent::__destruct(); }