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
LoadWizardView.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Form\View\Wizard
;
3
22
class
LoadWizardView
extends
\TYPO3\CMS\Form\View\Wizard\AbstractWizardView
{
23
31
public
function
render
() {
32
$jsonObject = $this->repository->getRecordAsJson();
33
$this->
headerOutput
($jsonObject);
34
}
35
42
protected
function
headerOutput
($jsonObject) {
43
if
(!$jsonObject) {
44
header(
'HTTP/1.1 500 Internal Server Error'
);
45
$jsonArray = array(
'message'
=>
'Failed to save the form'
);
46
}
else
{
47
$jsonArray = array(
'configuration'
=> $jsonObject);
48
}
49
$json = json_encode($jsonArray);
50
header(
'Expires: Mon, 26 Jul 1997 05:00:00 GMT'
);
51
header(
'Last-Modified: '
. gmdate(
'D, d M Y H:i:s'
) .
'GMT'
);
52
header(
'Cache-Control: no-cache, must-revalidate'
);
53
header(
'Pragma: no-cache'
);
54
header(
'Content-Length: '
. strlen($json));
55
header(
'Content-Type: application/json; charset=utf-8'
);
56
header(
'Content-Transfer-Encoding: 8bit'
);
57
echo $json;
58
die
;
59
}
60
61
}
TYPO3\CMS\Form\View\Wizard\LoadWizardView\headerOutput
headerOutput($jsonObject)
Definition:
LoadWizardView.php:42
TYPO3\CMS\Form\View\Wizard\LoadWizardView
Definition:
LoadWizardView.php:22
TYPO3\CMS\Form\View\Wizard\LoadWizardView\render
render()
Definition:
LoadWizardView.php:31
die
die
Definition:
index.php:6
TYPO3\CMS\Form\View\Wizard
Definition:
AbstractWizardView.php:2
TYPO3\CMS\Form\View\Wizard\AbstractWizardView
Definition:
AbstractWizardView.php:22
typo3
sysext
form
Classes
View
Wizard
LoadWizardView.php
Generated on Wed Aug 7 2019 09:52:27 for TYPO3 CMS by
1.8.13