Beispiel #1
0
 /**
  * @constuctor
  *
  * @param	string $identifier form identifier
  */
 public function __construct($identifier)
 {
     parent::__construct($identifier);
     if (TYPO3_MODE == 'FE') {
         if (UserUtility::isLogged()) {
             $GLOBALS['TSFE']->fe_user->setKey('user', 'form-' . $this->getIdentifier() . '-clauses', $this->clauses);
         } else {
             $GLOBALS['TSFE']->fe_user->setKey('ses', 'form-' . $this->getIdentifier() . '-clauses', $this->clauses);
         }
         $GLOBALS['TSFE']->storeSessionData();
     } elseif (TYPO3_MODE == 'BE') {
         session_start();
         $_SESSION['form-' . $this->getIdentifier() . '-clauses'] = $this->clauses;
     }
     if (!is_array($this->clauses)) {
         $this->clauses = [];
     }
 }
Beispiel #2
0
 /**
  * @constuctor
  *
  * @param	string $identifier form identifier
  * @param	\TYPO3\CMS\Extbase\DomainObject\AbstractEntity $model model
  */
 public function __construct($identifier)
 {
     parent::__construct($identifier);
     $this->mode = 'crud/manual';
 }