TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper:
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper Tx_Fluid_ViewHelpers_Format_HtmlViewHelper

Public Member Functions

 injectConfigurationManager (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
 
 render ($parseFuncTSPath='lib.parseFunc_RTE')
 
- 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 Member Functions

 simulateFrontendEnvironment ()
 
 resetFrontendEnvironment ()
 
- 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)
 

Protected Attributes

 $contentObject
 
 $tsfeBackup
 
 $escapingInterceptorEnabled = FALSE
 
 $configurationManager
 
- 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)
 

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 47 of file HtmlViewHelper.php.

Member Function Documentation

◆ injectConfigurationManager()

TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::injectConfigurationManager ( \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface  $configurationManager)
Parameters
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface$configurationManager
Returns
void

Definition at line 77 of file HtmlViewHelper.php.

References TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper\$configurationManager.

◆ render()

TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::render (   $parseFuncTSPath = 'lib.parseFunc_RTE')

◆ resetFrontendEnvironment()

TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::resetFrontendEnvironment ( )
protected

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

Returns
void
See also
simulateFrontendEnvironment()

Definition at line 117 of file HtmlViewHelper.php.

References $GLOBALS, and TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper\$tsfeBackup.

Referenced by TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper\render().

◆ simulateFrontendEnvironment()

TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::simulateFrontendEnvironment ( )
protected

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

Returns
void

Definition at line 104 of file HtmlViewHelper.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper\render().

Member Data Documentation

◆ $configurationManager

TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::$configurationManager
protected

◆ $contentObject

TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::$contentObject
protected

Definition at line 52 of file HtmlViewHelper.php.

◆ $escapingInterceptorEnabled

TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::$escapingInterceptorEnabled = FALSE
protected

Definition at line 66 of file HtmlViewHelper.php.

◆ $tsfeBackup

TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::$tsfeBackup
protected