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

Public Member Functions

 render ($label, $controller, $action, array $arguments=array())
 
- 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 = 'option'
 
- 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 an option tag. This view helper only works in conjunction with 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 ActionMenuItemViewHelper.php.

Member Function Documentation

render (   $label,
  $controller,
  $action,
array  $arguments = array() 
)

Renders an ActionMenu option tag

Parameters
string$labellabel of the option tag
string$controllercontroller to be associated with this ActionMenuItem
string$actionthe action to be associated with this ActionMenuItem
array$argumentsadditional controller arguments to be passed to the action when this ActionMenuItem is selected
Returns
string the rendered option tag
See Also

Definition at line 68 of file ActionMenuItemViewHelper.php.

References AbstractViewHelper\$arguments.

Member Data Documentation

$tagName = 'option'
protected

Definition at line 56 of file ActionMenuItemViewHelper.php.