/** * Gets a session at the specific user. * * @param $sessionid * * @return null */ public function GetSession($sessionid) { if ($this->query == null) { return null; } $array = ["sessionid" => $sessionid]; $result = $this->query->Query()->where($array)->get(); return empty($result) == true ? null : $this->query->GetRow($result, 0); }
/** * Gets the user. * * @param $userid * * @return null */ public function GetUser($userid) { if ($this->capsule == null) { return null; } $array = ["userid" => $userid]; $result = $this->query->Query()->where($array)->get(); return empty($result) == true ? null : $this->query->GetRow($result, 0); }