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

Public Member Functions

 initializeArguments ()
 
 render ($action=null, $arguments=array(), $section= '', $format= '', $ajax=false)
 
- 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 Member Functions

 getAjaxUri ()
 
 getWidgetUri ()
 
- 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractViewHelper
static renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
- 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 within widgets.

= Examples =

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

Definition at line 38 of file UriViewHelper.php.

Member Function Documentation

getAjaxUri ( )
protected

Get the URI for an AJAX Request.

Returns
string the AJAX URI

Definition at line 76 of file UriViewHelper.php.

References AbstractViewHelper\$arguments, and $GLOBALS.

Referenced by UriViewHelper\render().

getWidgetUri ( )
protected

Get the URI for a non-AJAX Request.

Returns
string the Widget URI

Definition at line 96 of file UriViewHelper.php.

References AbstractViewHelper\$arguments, and AbstractViewHelper\hasArgument().

Referenced by UriViewHelper\render().

initializeArguments ( )

Initialize arguments

Returns
void

Definition at line 46 of file UriViewHelper.php.

References AbstractViewHelper\registerArgument().

render (   $action = null,
  $arguments = array(),
  $section = '',
  $format = '',
  $ajax = false 
)

Render the Uri.

Parameters
string$actionTarget action
array$argumentsArguments
string$sectionThe anchor to be added to the URI
string$formatThe requested format, e.g. ".html
bool$ajaxTRUE if the URI should be to an AJAX widget, FALSE otherwise.
Returns
string The rendered link

Definition at line 62 of file UriViewHelper.php.

References UriViewHelper\getAjaxUri(), and UriViewHelper\getWidgetUri().