TYPO3  7.6
Public Member Functions | List of all members
ActionViewHelper Class Reference
Inheritance diagram for ActionViewHelper:
AbstractViewHelper

Public Member Functions

 render ($action=null, array $arguments=array(), $controller=null, $extensionName=null, $pluginName=null, $pageUid=null, $pageType=0, $noCache=false, $noCacheHash=false, $section= '', $format= '', $linkAccessRestrictedPages=false, array $additionalParams=array(), $absolute=false, $addQueryString=false, array $argumentsToBeExcludedFromQueryString=array(), $addQueryStringMethod=null)
 
- 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 ()
 

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 AbstractViewHelper
 registerArgument ($name, $type, $description, $required=false, $defaultValue=null)
 
 overrideArgument ($name, $type, $description, $required=false, $defaultValue=null)
 
 callRenderMethod ()
 
 getLogger ()
 
 buildRenderChildrenClosure ()
 
 hasArgument ($argumentName)
 
- Protected Attributes inherited from AbstractViewHelper
 $arguments
 
 $templateVariableContainer
 
 $controllerContext
 
 $renderingContext
 
 $renderChildrenClosure = null
 
 $viewHelperVariableContainer
 
 $objectManager
 
 $escapingInterceptorEnabled = true
 

Detailed Description

A view helper for creating URIs to extbase actions.

= Examples =

<f:uri.action action="show" /> <output> index.php?id=123&tx_myextension_plugin[action]=show&tx_myextension_plugin[controller]=Standard&cHash=xyz (depending on the current page and your TS configuration) </output>

Definition at line 29 of file Uri/ActionViewHelper.php.

Member Function Documentation

render (   $action = null,
array  $arguments = array(),
  $controller = null,
  $extensionName = null,
  $pluginName = null,
  $pageUid = null,
  $pageType = 0,
  $noCache = false,
  $noCacheHash = false,
  $section = '',
  $format = '',
  $linkAccessRestrictedPages = false,
array  $additionalParams = array(),
  $absolute = false,
  $addQueryString = false,
array  $argumentsToBeExcludedFromQueryString = array(),
  $addQueryStringMethod = null 
)
Parameters
string$actionTarget action
array$argumentsArguments
string$controllerTarget controller. If NULL current controllerName is used
string$extensionNameTarget Extension Name (without "tx_" prefix and no underscores). If NULL the current extension name is used
string$pluginNameTarget plugin. If empty, the current plugin name is used
int$pageUidtarget page. See TypoLink destination
int$pageTypetype of the target page. See typolink.parameter
bool$noCacheset this to disable caching for the target page. You should not need this.
bool$noCacheHashset this to suppress the cHash query parameter created by TypoLink. You should not need this.
string$sectionthe anchor to be added to the URI
string$formatThe requested format, e.g. ".html
bool$linkAccessRestrictedPagesIf set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
array$additionalParamsadditional query parameters that won't be prefixed like $arguments (overrule $arguments)
bool$absoluteIf set, an absolute URI is rendered
bool$addQueryStringIf set, the current query parameters will be kept in the URI
array$argumentsToBeExcludedFromQueryStringarguments to be removed from the URI. Only active if $addQueryString = TRUE
string$addQueryStringMethodSet which parameters will be kept. Only active if $addQueryString = TRUE
Returns
string Rendered link

Definition at line 51 of file Uri/ActionViewHelper.php.

References AbstractViewHelper\$arguments.