TYPO3 CMS  TYPO3_6-2
RedirectPostProcessor.php
Go to the documentation of this file.
1 <?php
3 
20 
24  protected $form;
25 
29  protected $typoScript;
30 
34  protected $requestHandler;
35 
39  protected $destination;
40 
44  protected $dirtyHeaders = array();
45 
52  public function __construct(\TYPO3\CMS\Form\Domain\Model\Form $form, array $typoScript) {
53  $this->form = $form;
54  $this->typoScript = $typoScript;
55  $this->requestHandler = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Form\\Request');
56  }
57 
63  public function process() {
64  $this->setDestination();
65  return $this->render();
66  }
67 
73  protected function setDestination() {
74  $this->destination = '';
75  if ($this->typoScript['destination']) {
76  $urlConf = array('parameter' => $this->typoScript['destination']);
77  $this->destination = $GLOBALS['TSFE']->cObj->typoLink_URL($urlConf);
78  }
79  }
80 
86  protected function render() {
88  return '';
89  }
90 }
process()
render()
$destination
$form
setDestination()
$typoScript
$requestHandler
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
Definition: HttpUtility.php:76
__construct(\TYPO3\CMS\Form\Domain\Model\Form $form, array $typoScript)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
$dirtyHeaders