TYPO3  7.6
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
TypolinkViewHelper Class Reference
Inheritance diagram for TypolinkViewHelper:
AbstractViewHelper CompilableInterface

Public Member Functions

 render ($parameter, $additionalParams= '')
 
- 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 ()
 
- Public Member Functions inherited from CompilableInterface
 compile ($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode,\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode,\TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler)
 

Static Public Member Functions

static renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 
- Static Public Member Functions inherited from AbstractViewHelper
static renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
- Static Public Member Functions inherited from CompilableInterface
static renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 

Static Protected Member Functions

static createTypolinkParameterArrayFromArguments ($parameter, $additionalParameters= '')
 

Additional Inherited Members

- 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 ViewHelper to create uris from fields supported by the link wizard

== Example ==

{link} contains "19 - - - &X=y" Please note that due to the nature of typolink you have to provide a full set of parameters if you use the parameter only. Target, class and title will be discarded.

<f:uri.typolink parameter="{link}" /> <output> index.php?id=19&X=y </output>

<f:uri.typolink parameter="{link}" additionalParams="&u=b" /> <output> index.php?id=19&X=y&u=b </output>

Definition at line 49 of file Uri/TypolinkViewHelper.php.

Member Function Documentation

static createTypolinkParameterArrayFromArguments (   $parameter,
  $additionalParameters = '' 
)
staticprotected

Transforms ViewHelper arguments to typo3link.parameters.typoscript option as array.

Parameters
string$parameterExample: 19 _blank - "testtitle with whitespace" &X=y
string$additionalParameters
Returns
string The final TypoLink string

Definition at line 104 of file Uri/TypolinkViewHelper.php.

References GeneralUtility\makeInstance().

render (   $parameter,
  $additionalParams = '' 
)

Render

Parameters
string$parameterstdWrap.typolink style parameter string
string$additionalParams
Returns
string

Definition at line 59 of file Uri/TypolinkViewHelper.php.

References AbstractViewHelper\buildRenderChildrenClosure().

static renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static
Parameters
array$arguments
callable$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
string
Parameters
array$arguments
callable$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
mixed|string
Exceptions
\InvalidArgumentException
\UnexpectedValueException

Definition at line 78 of file Uri/TypolinkViewHelper.php.

References GeneralUtility\makeInstance().