TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
fluid
Classes
ViewHelpers
LayoutViewHelper.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Fluid\ViewHelpers;
3
4
/* *
5
* This script is backported from the TYPO3 Flow package "TYPO3.Fluid". *
6
* *
7
* It is free software; you can redistribute it and/or modify it under *
8
* the terms of the GNU Lesser General Public License, either version 3 *
9
* of the License, or (at your option) any later version. *
10
* *
11
* The TYPO3 project - inspiring people to share! *
12
* */
13
28
class
LayoutViewHelper
extends
\TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
implements
\TYPO3\CMS\Fluid\Core\ViewHelper\Facets\PostParseInterface
29
{
36
public
function
initializeArguments
()
37
{
38
$this->
registerArgument
(
'name'
,
'string'
,
'Name of layout to use. If none given, "Default" is used.'
,
true
);
39
}
40
49
public
static
function
postParseEvent
(\TYPO3\CMS\
Fluid
\Core\Parser\SyntaxTree\ViewHelperNode $syntaxTreeNode, array $viewHelperArguments, \TYPO3\CMS\
Fluid
\Core\ViewHelper\TemplateVariableContainer $variableContainer)
50
{
51
if
(isset($viewHelperArguments[
'name'
])) {
52
$layoutNameNode = $viewHelperArguments[
'name'
];
53
}
else
{
54
$layoutNameNode = new \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\TextNode(
'Default'
);
55
}
56
57
$variableContainer->add(
'layoutName'
, $layoutNameNode);
58
}
59
66
public
function
render
()
67
{
68
}
69
}
Generated on Wed Nov 11 2015 01:51:59 for TYPO3 by
1.8.3