Exemple #1
0
 /**
  * Gets the owner of this session
  *
  * @param $session_id
  *
  * @return null
  */
 public function Owner($session_id)
 {
     $result = $this->database->Select($session_id);
     if ($result != null) {
         /**
          * Lets get their userid
          */
         return $result['session_user_id'];
     }
     return null;
 }
Exemple #2
0
 /**
  * What we do on construct
  *
  * @param $session_id
  */
 public function __construct($session_id)
 {
     $this->database = new DatabaseSession();
     if ($this->database->Exists($session_id) == false) {
         return;
     }
     /**
      * Set the ID
      */
     $this->session_id = $session_id;
     /**
      * Get session data
      */
     $this->session_data = $this->database->Select($session_id);
 }