TYPO3 CMS  TYPO3_6-2
alt_doc.php
Go to the documentation of this file.
1 <?php
22 require_once 'init.php';
24 
25 /* @var $editDocumentController \TYPO3\CMS\Backend\Controller\EditDocumentController */
26 $editDocumentController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\EditDocumentController');
27 
28 // Preprocessing, storing data if submitted to
29 $editDocumentController->preInit();
30 
31 // Checks, if a save button has been clicked (or the doSave variable is sent)
32 if ($editDocumentController->doProcessData()) {
34  if ($formprotection->validateToken(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('formToken'), 'editRecord')) {
35  $editDocumentController->processData();
36  }
37 }
38 
41 $editDocumentController->printContent();
$formprotection
Definition: mod.php:24
static lockRecords($table='', $uid=0, $pid=0)
$editDocumentController
Definition: alt_doc.php:26