Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 public function __destruct()
 {
     if ($this->config_modified) {
         $this->config_save();
     }
     parent::__destruct();
 }
Ejemplo n.º 3
0
 public function __destruct()
 {
     $this->save_page_objects();
     $this->save_user_presets();
     parent::__destruct();
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 6
0
 public function __destruct()
 {
     $this->close();
     parent::__destruct();
 }
Ejemplo n.º 7
0
 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();
 }
Ejemplo n.º 8
0
 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();
 }
Ejemplo n.º 9
0
 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();
 }
Ejemplo n.º 10
0
 /**
  * Close the database connection
  */
 public function __destruct()
 {
     $this->disconnect();
     parent::__destruct();
 }
Ejemplo n.º 11
0
 public function __get($key)
 {
     return isset($this->fitems[$key]) ? $this->fitems[$key] : parent::__get($key);
 }
Ejemplo n.º 12
0
 public function __get($name)
 {
     switch ($name) {
         case 'error':
             return $this->error;
         default:
             return parent::__get($name);
     }
 }
Ejemplo n.º 13
0
 public function __get($name)
 {
     if (in_array($name, $this->types)) {
         $this->{$name} = array();
     }
     return parent::__get($name);
 }
Ejemplo n.º 14
0
 public function __destruct()
 {
     unset($this->parser);
     unset($this->avail_parser);
     parent::__destruct();
 }
Ejemplo n.º 15
0
 public function __destruct()
 {
     $this->_data = array();
     $this->states = array();
     parent::__destruct();
 }
 public function __destruct()
 {
     $this->rli->add_cache_data('member', $this->members);
     parent::__destruct();
 }
Ejemplo n.º 17
0
 public function __destruct()
 {
     unset($this->config);
     parent::__destruct();
 }
Ejemplo n.º 18
0
 public function __destruct()
 {
     //close the socket
     fclose($this->fp);
     parent::__destruct();
 }