Exemplo n.º 1
0
 public function fetch($bid)
 {
     if ($block = parent::fetch(dintval($bid))) {
         $block['param'] = $block['param'] ? dunserialize($block['param']) : array();
     }
     return $block;
 }
 public function fetch($id, $force_from_db = false)
 {
     $data = parent::fetch($id, $force_from_db);
     if ($data) {
         $data['data'] = unserialize($data['data']);
         return $data;
     } else {
         return array();
     }
 }
 public function fetch($id, $force_from_db = false, $fetch_archive = 0)
 {
     $data = array();
     if (!empty($id)) {
         $data = parent::fetch($id, $force_from_db);
         if (isset($this->membersplit) && $fetch_archive && empty($data)) {
             $data = C::t($this->_table . '_archive')->fetch($id);
         }
     }
     return $data;
 }
Exemplo n.º 4
0
 public function fetch($sid, $ip = false, $uid = false)
 {
     if (empty($sid)) {
         return array();
     }
     $this->checkpk();
     $session = parent::fetch($sid);
     if ($session && $ip !== false && $ip != "{$session['ip1']}.{$session['ip2']}.{$session['ip3']}.{$session['ip4']}") {
         $session = array();
     }
     if ($session && $uid !== false && $uid != $session['uid']) {
         $session = array();
     }
     return $session;
 }
Exemplo n.º 5
0
 public function fetch($id, $force_from_db = true)
 {
     return parent::fetch($id, true);
 }
 public function fetch_by_pid($pid)
 {
     return parent::fetch($pid);
     //return DB::fetch_first('SELECT * FROM %t WHERE pid=%d', array($this->_table, $pid));
 }