Extends a traditional ActionController with new services and methods to ease interaction with Flux forms. Is not required as subclass for Controllers rendering records associated with Flux - all it does is ease the interaction by providing a common API.
상속: extends TYPO3\CMS\Extbase\Mvc\Controller\ActionController
예제 #1
0
 /**
  * @param ViewInterface $view
  * @return void
  */
 public function initializeView(ViewInterface $view)
 {
     $record = $this->getRecord();
     $this->configurationManager->getContentObject()->data = $record;
     parent::initializeView($view);
     $this->response->addAdditionalHeaderData((string) $this->view->renderStandaloneSection('HeaderCode', $this->provider->getTemplateVariables($record), true));
 }
 /**
  * @param \TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view
  * @return void
  */
 public function initializeView(ViewInterface $view)
 {
     parent::initializeView($view);
     $view->assign('page', $GLOBALS['TSFE']->page);
     $view->assign('user', $GLOBALS['TSFE']->fe_user->user);
     $view->assign('record', $this->getRecord());
     $view->assign('contentObject', $this->configurationManager->getContentObject());
     $view->assign('cookies', $_COOKIE);
     $view->assign('session', $_SESSION);
 }
 /**
  * @param ViewInterface $view
  * @return void
  */
 public function initializeView(ViewInterface $view)
 {
     parent::initializeView($view);
     $name = $this->getCurrentConfigurationName();
     $pageUid = $this->getCurrentPageUid();
     $this->configuration = $this->configurationRepository->findOrCreateOneByNameInPid($name, $pageUid);
     $this->formHandler = $this->objectManager->get('TYPO3\\CMS\\Backend\\Form\\FormEngine');
     $this->formHandler->enableClickMenu = TRUE;
     $this->formHandler->enableTabMenu = TRUE;
     $this->view->assign('formHandler', $this->formHandler);
     $this->view->assign('configurationName', $name);
     $this->view->setControllerContext($this->controllerContext);
 }
 /**
  * @return void
  */
 protected function initializeViewVariables()
 {
     $row = $this->getRecord();
     $form = $this->provider->getForm($row);
     $generalSettings = $this->configurationService->convertFlexFormContentToArray($row['pi_flexform'], $form);
     $contentSettings = $this->configurationService->convertFlexFormContentToArray($row['content_options'], $form);
     $this->settings = RecursiveArrayUtility::merge($this->settings, $generalSettings, FALSE, FALSE);
     if (FALSE === isset($this->settings['content'])) {
         $this->settings['content'] = $contentSettings;
     } else {
         $this->settings['content'] = RecursiveArrayUtility::merge($this->settings['content'], $contentSettings);
     }
     parent::initializeViewVariables();
 }
 /**
  * @param ViewInterface $view
  * @return void
  */
 public function initializeView(ViewInterface $view)
 {
     $this->configurationManager->getContentObject()->data = $this->getRecord();
     parent::initializeView($view);
 }
 /**
  * @param \TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view
  * @return void
  */
 public function initializeView(ViewInterface $view)
 {
     $this->configurationManager->getContentObject()->data = $GLOBALS['TSFE']->page;
     parent::initializeView($view);
 }
 /**
  * @return void
  */
 protected function initializeViewVariables()
 {
     $row = $this->getRecord();
     $flexFormData = $this->configurationService->convertFlexFormContentToArray($row['pi_flexform']);
     $this->settings = RecursiveArrayUtility::merge($this->settings, $flexFormData, FALSE, FALSE);
     parent::initializeViewVariables();
 }