/** * Load the attributes from the $_SESSION global * * @return UserSessionContainerAbstract */ public function loadSession(array &$session = null) { parent::loadSession($session); //Update the session timers $this->_updateTimers(); return $this; }
/** * 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 UserSessionContainerAbstract */ public function load(array &$session) { parent::load($session); $this->_previous = $this->toArray(); $this->clear(); return $this; }
/** * Add new flash messages * * @param array $messages An of messages per type * @return UserSessionContainerMessage */ public function values(array $messages) { parent::values($messages); return $this; }