TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
UrlencodeViewHelper Class Reference
Inheritance diagram for UrlencodeViewHelper:
AbstractViewHelper

Public Member Functions

 initializeArguments ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Static Public Member Functions

static renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

 $escapeChildren = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Detailed Description

Encodes the given string according to http://www.faqs.org/rfcs/rfc3986.html (applying PHPs rawurlencode() function)

See also
http://www.php.net/manual/function.rawurlencode.php Note: The output is not escaped. You may have to ensure proper escaping on your own.

= Examples =

<f:format.rawurlencode>foo @+%/</f:format.rawurlencode> <output> foo%20%40%2B%25%2F (rawurlencode() applied) </output>

{text -> f:format.urlencode()} <output> Url encoded text (rawurlencode() applied) </output>

Definition at line 44 of file UrlencodeViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize ViewHelper arguments

Exceptions
Exception

Definition at line 60 of file UrlencodeViewHelper.php.

static renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Escapes special characters with their escaped counterparts as needed using PHPs rawurlencode() function.

See also
http://www.php.net/manual/function.rawurlencode.php
Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
mixed

Definition at line 76 of file UrlencodeViewHelper.php.

Member Data Documentation

$escapeChildren = false
protected

Definition at line 53 of file UrlencodeViewHelper.php.