Example #1
0
 public static function setSessOffline(Module_Chat $module)
 {
     $sessid = GWF_Session::getSessID();
     $table = new self(false);
     if (false === ($row = $table->getRow($sessid))) {
         # Unknown row
         return true;
     }
     return $row->saveVar('chaton_timeleft', time());
 }
Example #2
0
 public function pivot($table, $id)
 {
     $cursor = new self(Db::instance($this->db->db, $table));
     $row = $cursor->getRow($id);
     if (!is_null($this->closure)) {
         if (is_callable($this->closure)) {
             $callable = $this->closure;
             $row = $callable($row);
         }
     }
     return $row;
 }
Example #3
0
 public function pivot($table, $id)
 {
     $cursor = new self(Db::instance($this->db->db, $table));
     return $cursor->getRow($id);
 }
Example #4
0
 public static function getByEmail($email)
 {
     $nl = new self(false);
     return $nl->getRow($email);
 }