Exemplo n.º 1
0
 /**
  * Render the confirmation screen
  *
  * Stores the submitted data in a session
  *
  * @return string The confirmation screen HTML
  */
 protected function renderConfirmation()
 {
     $form = $this->typoscriptFactory->buildModelFromTyposcript($this->typoscript);
     $this->requestHandler->storeSession();
     $confirmationTyposcript = array();
     if (isset($this->typoscript['confirmation.'])) {
         $confirmationTyposcript = $this->typoscript['confirmation.'];
     }
     /** @var $view \TYPO3\CMS\Form\View\Confirmation\ConfirmationView */
     $view = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Form\\View\\Confirmation\\ConfirmationView', $form, $confirmationTyposcript);
     return $view->get();
 }
Exemplo n.º 2
0
	/**
	 * Render the confirmation screen
	 *
	 * Stores the submitted data in a session
	 *
	 * @return string The confirmation screen HTML
	 */
	protected function renderConfirmation() {
		$confirmationTyposcript = array();
		if (isset($this->typoscript['confirmation.'])) {
			$confirmationTyposcript = $this->typoscript['confirmation.'];
		}

		$layout = $this->typoscriptFactory->getLayoutFromTypoScript($confirmationTyposcript);
		$form = $this->typoscriptFactory->buildModelFromTyposcript($this->typoscript);

		$this->layoutHandler->setLayout($layout);
		$this->requestHandler->storeSession();
		/** @var $view \TYPO3\CMS\Form\View\Confirmation\ConfirmationView */
		$view = GeneralUtility::makeInstance(\TYPO3\CMS\Form\View\Confirmation\ConfirmationView::class, $form, $confirmationTyposcript);
		return $view->get();
	}