/** * Fetch all values from session * * @return \Evoweb\SfRegister\Services\Session */ public function fetch() { if ($this->values === null) { $this->values = (array) unserialize($this->frontendUser->getKey('ses', $this->sessionKey)); } return $this; }
/** * Store coordinate for hash in session * * @param string $key * @param array $value * * @throws \TYPO3\CMS\Core\Exception * @return void */ public function setValueInSession($key, $value) { if ($this->frontendUser != null) { $sessionData = $this->frontendUser->getKey('ses', 'tx_storefinder_coordinates'); $sessionData[$key] = serialize($value); $this->frontendUser->setKey('ses', 'tx_storefinder_coordinates', $sessionData); $this->frontendUser->storeSessionData(); } }
/** * Get leaf states from user session * * @param FrontendUserAuthentication $user * @return array|mixed */ protected function getFolderState(FrontendUserAuthentication $user) { $folderStates = $user->getKey($user->user['uid'] ? 'user' : 'ses', 'LeafStateService'); if ($folderStates) { $folderStates = unserialize($folderStates); } if (!is_array($folderStates)) { $folderStates = array(); } return $folderStates; }
/** * Return stored session data */ private function restoreFromSession($key) { return $this->frontendUser->getKey('ses', 'tx_t3extblog_' . $key); }
/** * Tries to read the auth code from the session * * @return string */ public function getAuthCodeFromSession() { return $this->tsfeUser->getKey('ses', 'formhandler_auth_code'); }