TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
HtmlViewHelper Class Reference
Inheritance diagram for HtmlViewHelper:
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)
 

Static Protected Member Functions

static simulateFrontendEnvironment ()
 
static resetFrontendEnvironment ()
 

Protected Attributes

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

Static Protected Attributes

static $tsfeBackup
 

Additional Inherited Members

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

Detailed Description

Renders a string by passing it to a TYPO3 parseFunc. You can either specify a path to the TypoScript setting or set the parseFunc options directly. By default lib.parseFunc_RTE is used to parse the string.

== Examples ==

<f:format.html>foo bar. Some <LINK 1>link</LINK>.</f:format.html> <output>

foo bar. Some link.

(depending on your TYPO3 setup) </output>

<f:format.html parseFuncTSPath="lib.parseFunc">foo bar. Some <LINK 1>link</LINK>.</f:format.html> <output> foo bar. Some link. </output>

{someText -> f:format.html(parseFuncTSPath: 'lib.parseFunc')} <output> foo bar. Some link. </output>

See also
https://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Parsefunc/

Definition at line 56 of file HtmlViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize arguments.

Exceptions
TYPO3Fluid

Definition at line 84 of file HtmlViewHelper.php.

static renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static
Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
string the parsed string.

Definition at line 97 of file HtmlViewHelper.php.

References GeneralUtility\deprecationLog(), and GeneralUtility\makeInstance().

static resetFrontendEnvironment ( )
staticprotected

Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()

See also
simulateFrontendEnvironment()

Definition at line 133 of file HtmlViewHelper.php.

References $GLOBALS.

static simulateFrontendEnvironment ( )
staticprotected

Copies the specified parseFunc configuration to $GLOBALS['TSFE']->tmpl->setup in Backend mode This somewhat hacky work around is currently needed because the parseFunc() function of relies on those variables to be set

Definition at line 118 of file HtmlViewHelper.php.

References $GLOBALS, AbstractViewHelper\$objectManager, ConfigurationManagerInterface\CONFIGURATION_TYPE_FULL_TYPOSCRIPT, and GeneralUtility\makeInstance().

Member Data Documentation

$escapeChildren = false
protected

Definition at line 70 of file HtmlViewHelper.php.

$escapeOutput = false
protected

Definition at line 77 of file HtmlViewHelper.php.

$tsfeBackup
staticprotected

Definition at line 63 of file HtmlViewHelper.php.