示例#1
0
 /**
  * Load the attributes by reference
  *
  * @param  array $session
  * @return $this
  */
 public function load(array &$session)
 {
     parent::load($session);
     //Update the session timers
     $this->_updateTimers();
     return $this;
 }
示例#2
0
 /**
  * Load the attributes by reference
  *
  * After starting a session, PHP retrieves the session data through the session handler and populates $_SESSION
  * with the result automatically. This function can load the attributes from the $_SESSION global by reference
  * by passing the $_SESSION to this function.
  *
  * @param array $session The session data to load by reference.
  * @return KUserSessionContainerAbstract
  */
 public function load(array &$session)
 {
     parent::load($session);
     $this->_previous = $this->toArray();
     $this->clear();
     return $this;
 }