TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractTagBasedViewHelper Class Reference
Inheritance diagram for AbstractTagBasedViewHelper:
AbstractViewHelper TypoScriptConstantsViewHelper ImageViewHelper ActionViewHelper ProcessAvailableActionsViewHelper ClickMenuOnIconViewHelper ActionMenuItemViewHelper ActionMenuViewHelper FlashMessagesViewHelper AbstractFormViewHelper ImageViewHelper ActionViewHelper EmailViewHelper ExternalViewHelper PageViewHelper MediaViewHelper LinkViewHelper SectionViewHelper

Public Member Functions

 __construct ()
 
 initializeArguments ()
 
 initialize ()
 
- 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 ()
 

Protected Member Functions

 registerTagAttribute ($name, $type, $description, $required=false, $default=null)
 
 registerUniversalTagAttributes ()
 
- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Protected Attributes

 $tagName = 'div'
 
 $tag
 
 $escapeOutput = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Static Private Attributes

static $tagAttributes = []
 

Detailed Description

Tag based view helper. Sould be used as the base class for all view helpers which output simple tags, as it provides some convenience methods to register default attributes, ...

Definition at line 24 of file AbstractTagBasedViewHelper.php.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 54 of file AbstractTagBasedViewHelper.php.

Member Function Documentation

initialize ( )

Sets the tag name to $this->tagName. Additionally, sets all tag attributes which were registered in $this->tagAttributes and additionalArguments.

Will be invoked just before the render method.

Returns
void

Definition at line 81 of file AbstractTagBasedViewHelper.php.

initializeArguments ( )

Constructor

Definition at line 64 of file AbstractTagBasedViewHelper.php.

registerTagAttribute (   $name,
  $type,
  $description,
  $required = false,
  $default = null 
)
protected

Member Data Documentation

$escapeOutput = false
protected

Definition at line 49 of file AbstractTagBasedViewHelper.php.

$tagAttributes = []
staticprivate

Definition at line 31 of file AbstractTagBasedViewHelper.php.

$tagName = 'div'
protected

Definition at line 39 of file AbstractTagBasedViewHelper.php.