TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Fluid\ViewHelpers\Link\ActionViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Link\ActionViewHelper:
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper Tx_Fluid_ViewHelpers_Link_ActionViewHelper TYPO3\CMS\Documentation\ViewHelpers\Link\ActionViewHelper TYPO3\CMS\Extensionmanager\ViewHelpers\ConfigureExtensionViewHelper TYPO3\CMS\Extensionmanager\ViewHelpers\DownloadExtensionDataViewHelper TYPO3\CMS\Extensionmanager\ViewHelpers\ProcessAvailableActionsViewHelper TYPO3\CMS\Extensionmanager\ViewHelpers\RemoveExtensionViewHelper TYPO3\CMS\Extensionmanager\ViewHelpers\ShowExtensionVersionsViewHelper TYPO3\CMS\Extensionmanager\ViewHelpers\ToggleExtensionInstallationStateViewHelper TYPO3\CMS\Extensionmanager\ViewHelpers\UpdateScriptViewHelper

Public Member Functions

 initializeArguments ()
 
 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 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper
 __construct ()
 
 initialize ()
 
- Public Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\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 = 'a'
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper
 $tag = NULL
 
 $tagName = 'div'
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 $arguments
 
 $templateVariableContainer
 
 $controllerContext
 
 $renderingContext
 
 $renderChildrenClosure = NULL
 
 $viewHelperVariableContainer
 
 $objectManager
 
 $escapingInterceptorEnabled = TRUE
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
static renderStatic (array $arguments, \Closure $renderChildrenClosure, \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
- Protected Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper
 registerTagAttribute ($name, $type, $description, $required=FALSE, $default=NULL)
 
 registerUniversalTagAttributes ()
 
- Protected Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 registerArgument ($name, $type, $description, $required=FALSE, $defaultValue=NULL)
 
 overrideArgument ($name, $type, $description, $required=FALSE, $defaultValue=NULL)
 
 callRenderMethod ()
 
 buildRenderChildrenClosure ()
 
 hasArgument ($argumentName)
 

Detailed Description

A view helper for creating links to extbase actions.

= Examples =

<f:link.action action="show">action link</f:link.action> <output> action link</f:link.action> (depending on the current page and your TS configuration)

Definition at line 29 of file ActionViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Fluid\ViewHelpers\Link\ActionViewHelper::initializeArguments ( )

◆ render()

TYPO3\CMS\Fluid\ViewHelpers\Link\ActionViewHelper::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
integer$pageUidtarget page. See TypoLink destination
integer$pageTypetype of the target page. See typolink.parameter
boolean$noCacheset this to disable caching for the target page. You should not need this.
boolean$noCacheHashset this to supress 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
boolean$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)
boolean$absoluteIf set, the URI of the rendered link is absolute
boolean$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 69 of file ActionViewHelper.php.

References TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper\$arguments, and TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper\renderChildren().

Member Data Documentation

◆ $tagName

TYPO3\CMS\Fluid\ViewHelpers\Link\ActionViewHelper::$tagName = 'a'
protected

Definition at line 34 of file ActionViewHelper.php.