TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
alt_doc.php
Go to the documentation of this file.
1
<?php
22
require_once
'init.php'
;
23
\TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords
();
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()) {
33
$formprotection
=
\TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get
();
34
if
(
$formprotection
->validateToken(\
TYPO3
\CMS\Core\Utility\GeneralUtility::_GP(
'formToken'
),
'editRecord'
)) {
35
$editDocumentController
->processData();
36
}
37
}
38
39
$editDocumentController
->init();
40
$editDocumentController
->main();
41
$editDocumentController
->printContent();
TYPO3
TYPO3\CMS\Core\FormProtection\FormProtectionFactory\get
static get($className=NULL)
Definition:
FormProtectionFactory.php:66
$formprotection
$formprotection
Definition:
mod.php:24
TYPO3\CMS\Backend\Utility\BackendUtility\lockRecords
static lockRecords($table='', $uid=0, $pid=0)
Definition:
BackendUtility.php:3238
TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance
static makeInstance($className)
Definition:
GeneralUtility.php:4424
$editDocumentController
$editDocumentController
Definition:
alt_doc.php:26
typo3
alt_doc.php
Generated on Wed Aug 7 2019 09:52:17 for TYPO3 CMS by
1.8.13