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

Public Member Functions

 render ($parseFuncTSPath= 'lib.parseFunc_RTE')
 
- 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 simulateFrontendEnvironment ()
 
static resetFrontendEnvironment ()
 

Protected Attributes

 $escapingInterceptorEnabled = false
 
- Protected Attributes inherited from AbstractViewHelper
 $arguments
 
 $templateVariableContainer
 
 $controllerContext
 
 $renderingContext
 
 $renderChildrenClosure = null
 
 $viewHelperVariableContainer
 
 $objectManager
 
 $escapingInterceptorEnabled = true
 

Static Protected Attributes

static $tsfeBackup
 

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)
 

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

render (   $parseFuncTSPath = 'lib.parseFunc_RTE')
Parameters
string$parseFuncTSPathpath to TypoScript parseFunc setup.
Returns
string the parsed string.

Definition at line 76 of file HtmlViewHelper.php.

References AbstractViewHelper\buildRenderChildrenClosure().

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

Definition at line 94 of file HtmlViewHelper.php.

References AbstractViewHelper\$renderChildrenClosure, and GeneralUtility\makeInstance().

static resetFrontendEnvironment ( )
staticprotected

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

Returns
void
See Also
simulateFrontendEnvironment()

Definition at line 131 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

Returns
void

Definition at line 115 of file HtmlViewHelper.php.

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

Member Data Documentation

$escapingInterceptorEnabled = false
protected

Definition at line 70 of file HtmlViewHelper.php.

$tsfeBackup
staticprotected

Definition at line 61 of file HtmlViewHelper.php.