TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
ActionMenuViewHelper Class Reference
Inheritance diagram for ActionMenuViewHelper:
AbstractTagBasedViewHelper ChildNodeAccessInterface AbstractViewHelper ActionMenuItemGroupViewHelper

Public Member Functions

 setChildNodes (array $childNodes)
 
 render ($defaultController=null)
 
- Public Member Functions inherited from AbstractTagBasedViewHelper
 __construct ()
 
 initialize ()
 
- Public Member Functions inherited from AbstractViewHelper
 setArguments (array $arguments)
 
 setRenderingContext (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 isEscapingInterceptorEnabled ()
 
 setViewHelperNode (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $node)
 
 setRenderChildrenClosure (\Closure $renderChildrenClosure)
 
 initializeArgumentsAndRender ()
 
 initialize ()
 
 renderChildren ()
 
 prepareArguments ()
 
 validateArguments ()
 
 initializeArguments ()
 
 compile ($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode,\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode,\TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler)
 
 resetState ()
 

Protected Attributes

 $tagName = 'select'
 
 $childNodes = array()
 
- Protected Attributes inherited from AbstractTagBasedViewHelper
 $tag = null
 
 $tagName = 'div'
 
- Protected Attributes inherited from AbstractViewHelper
 $arguments
 
 $templateVariableContainer
 
 $controllerContext
 
 $renderingContext
 
 $renderChildrenClosure = null
 
 $viewHelperVariableContainer
 
 $objectManager
 
 $escapingInterceptorEnabled = true
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractViewHelper
static renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
- Protected Member Functions inherited from AbstractTagBasedViewHelper
 registerTagAttribute ($name, $type, $description, $required=false, $default=null)
 
 registerUniversalTagAttributes ()
 

Detailed Description

View helper which returns a select box, that can be used to switch between multiple actions and controllers and looks similar to TYPO3s funcMenu. Note: This view helper is experimental!

= Examples =

<f:be.menus.actionMenu> <f:be.menus.actionMenuItem label="Overview" controller="Blog" action="index" /> <f:be.menus.actionMenuItem label="Create new Blog" controller="Blog" action="new" /> <f:be.menus.actionMenuItem label="List Posts" controller="Post" action="index" arguments="{blog: blog}" /> </f:be.menus.actionMenu> <output> Selectbox with the options "Overview", "Create new Blog" and "List Posts" </output>

<f:be.menus.actionMenu> <f:be.menus.actionMenuItem label="{f:translate(key:'overview')}" controller="Blog" action="index" /> <f:be.menus.actionMenuItem label="{f:translate(key:'create_blog')}" controller="Blog" action="new" /> </f:be.menus.actionMenu> <output> localized selectbox <output>

Definition at line 51 of file ActionMenuViewHelper.php.

Member Function Documentation

render (   $defaultController = null)

Render FunctionMenu

Parameters
string$defaultController
Returns
string

Definition at line 83 of file ActionMenuViewHelper.php.

setChildNodes ( array  $childNodes)

Setter for ChildNodes - as defined in ChildNodeAccessInterface

Parameters
array$childNodesChild nodes of this syntax tree node
Returns
void

Implements ChildNodeAccessInterface.

Definition at line 72 of file ActionMenuViewHelper.php.

References ActionMenuViewHelper\$childNodes.

Member Data Documentation

$childNodes = array()
protected

Definition at line 63 of file ActionMenuViewHelper.php.

Referenced by ActionMenuViewHelper\setChildNodes().

$tagName = 'select'
protected

Definition at line 56 of file ActionMenuViewHelper.php.