Beispiel #1
0
 /**
  * Get the session data from database
  * 
  * @param string $sessionid
  * @return \stdClass|false if data doesn't exist in database
  */
 private function getDbData($sessionid)
 {
     $select = new Select($this->config['table']);
     $select->field('time', 'time')->field('data', 'data')->where('id', $sessionid)->setConnection($this->config['connection']);
     return $select->fetchFirstObj();
 }