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
JsonEncodeViewHelper.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extensionmanager\ViewHelpers\Format
;
3
21
class
JsonEncodeViewHelper
extends
\TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
{
22
28
public
function
__construct
() {
29
$this->
registerArgument
(
'additionalAttributes'
,
'array'
,
'Additional tag attributes. They will be added directly to the resulting HTML tag.'
, FALSE);
30
}
31
38
public
function
render
() {
39
if
($this->
hasArgument
(
'additionalAttributes'
) && is_array($this->arguments[
'additionalAttributes'
])) {
40
return
json_encode($this->arguments[
'additionalAttributes'
]);
41
}
42
$content = $this->
renderChildren
();
43
return
json_encode($content);
44
}
45
46
}
TYPO3\CMS\Extensionmanager\ViewHelpers\Format\JsonEncodeViewHelper\render
render()
Definition:
JsonEncodeViewHelper.php:38
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper\renderChildren
renderChildren()
Definition:
AbstractViewHelper.php:273
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper\hasArgument
hasArgument($argumentName)
Definition:
AbstractViewHelper.php:432
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper\registerArgument
registerArgument($name, $type, $description, $required=FALSE, $defaultValue=NULL)
Definition:
AbstractViewHelper.php:169
TYPO3\CMS\Extensionmanager\ViewHelpers\Format\JsonEncodeViewHelper
Definition:
JsonEncodeViewHelper.php:21
TYPO3\CMS\Extensionmanager\ViewHelpers\Format\JsonEncodeViewHelper\__construct
__construct()
Definition:
JsonEncodeViewHelper.php:28
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
Definition:
AbstractViewHelper.php:19
TYPO3\CMS\Extensionmanager\ViewHelpers\Format
Definition:
ImplodeViewHelper.php:2
typo3
sysext
extensionmanager
Classes
ViewHelpers
Format
JsonEncodeViewHelper.php
Generated on Wed Aug 7 2019 09:52:26 for TYPO3 CMS by
1.8.13