/**
  * Initialise feUser
  */
 protected function initializeUserAuthentication()
 {
     if ($this->feUser === null) {
         $this->feUser = \TYPO3\CMS\Frontend\Utility\EidUtility::initFeUser();
         $this->feUser->fetchGroupData();
     }
 }
示例#2
0
 /**
  *
  */
 protected function initializeUserAuthentication()
 {
     $this->feUserObj = EidUtility::initFeUser();
     $this->feUserObj->fetchGroupData();
     $this->databaseConnection = $GLOBALS['TYPO3_DB'];
     // This is obsolete since 6.1 but required for versions before.
     // It can be removed once support for TYPO3 below 6.1 is dropped.
     if (!$this->databaseConnection->isConnected()) {
         $this->databaseConnection->connectDB();
     }
 }
 /**
  * Stores session data for the front end user
  *
  * @return void
  */
 public function storeSessionData()
 {
     $this->fe_user->storeSessionData();
 }
 /**
  * Saves the tokens so that they can be used by a later incarnation of this
  * class.
  *
  * @access private
  * @return void
  */
 public function persistSessionToken()
 {
     $this->frontendUser->setAndSaveSessionData('formProtectionSessionToken', $this->sessionToken);
 }
示例#5
0
 /**
  * Write session data
  */
 private function writeToSession($key, $data)
 {
     $this->log->dev('Write so FE session', $data);
     $this->frontendUser->setKey('ses', 'tx_t3extblog_' . $key, $data);
     $this->frontendUser->storeSessionData();
 }
 /**
  * Save leaf states in user session
  *
  * @param FrontendUserAuthentication $user
  * @param array $folderState
  */
 protected function saveFolderState(FrontendUserAuthentication $user, array $folderState)
 {
     $user->setKey($user->user['uid'] ? 'user' : 'ses', 'LeafStateService', serialize($folderState));
     $user->storeSessionData();
 }
示例#7
0
 /**
  * Flush session cache
  *
  * @throws \TYPO3\CMS\Core\Exception
  * @return void
  */
 public function flushSessionCache()
 {
     $this->frontendUser->setKey('ses', 'tx_storefinder_coordinates', array());
     $this->frontendUser->storeSessionData();
 }
示例#8
0
 /**
  * Store all value to session
  *
  * @return \Evoweb\SfRegister\Services\Session
  */
 public function store()
 {
     $this->frontendUser->setKey('ses', $this->sessionKey, serialize($this->values));
     return $this;
 }
 /**
  * Removes the auth code from the session
  */
 public function clearAuthCodeFromSession()
 {
     $this->tsfeUser->setKey('ses', 'formhandler_auth_code', NULL);
     $this->tsfeUser->storeSessionData();
 }
示例#10
0
 /**
  * @param string $sessionIdentifier
  * @param mixed $value
  */
 public function set($sessionIdentifier, $value)
 {
     $this->frontendUser->setAndSaveSessionData($sessionIdentifier, $value);
 }
 /**
  * Default constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->initializeObject();
 }