PHP 클래스 Neos\FluidAdaptor\Core\ViewHelper\AbstractTagBasedViewHelper

Should be used as the base class for all view helpers which output simple tags, as it provides some convenience methods to register default attributes, ...
상속: extends AbstractViewHelper
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$escapeOutput boolean Disable escaping of tag based ViewHelpers so that the rendered tag is not htmlspecialchar'd
$tag TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder Tag builder instance
$tagName string Name of the tag to be created by this view helper

공개 메소드들

메소드 설명
__construct ( ) Constructor
handleAdditionalArguments ( array $arguments ) : void Handles additional arguments, sorting out any data- prefixed tag attributes and assigning them. Then passes the unassigned arguments to the parent class' method, which in the default implementation will throw an error about "undeclared argument used".
initialize ( ) : void Sets the tag name to $this->tagName.
injectTagBuilder ( TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder $tag ) : void

보호된 메소드들

메소드 설명
registerTagAttribute ( string $name, string $type, string $description, boolean $required = false, mixed $defaultValue = null ) : void Register a new tag attribute. Tag attributes are all arguments which will be directly appended to a tag if you call $this->initializeTag()
registerUniversalTagAttributes ( ) : void Registers all standard HTML universal attributes.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

handleAdditionalArguments() 공개 메소드

Handles additional arguments, sorting out any data- prefixed tag attributes and assigning them. Then passes the unassigned arguments to the parent class' method, which in the default implementation will throw an error about "undeclared argument used".
public handleAdditionalArguments ( array $arguments ) : void
$arguments array
리턴 void

initialize() 공개 메소드

Additionally, sets all tag attributes which were registered in $this->tagAttributes and additionalArguments. Will be invoked just before the render method.
public initialize ( ) : void
리턴 void

injectTagBuilder() 공개 메소드

public injectTagBuilder ( TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder $tag ) : void
$tag TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder
리턴 void

registerTagAttribute() 보호된 메소드

Register a new tag attribute. Tag attributes are all arguments which will be directly appended to a tag if you call $this->initializeTag()
protected registerTagAttribute ( string $name, string $type, string $description, boolean $required = false, mixed $defaultValue = null ) : void
$name string Name of tag attribute
$type string Type of the tag attribute
$description string Description of tag attribute
$required boolean set to TRUE if tag attribute is required. Defaults to FALSE.
$defaultValue mixed Optional, default value of attribute if one applies
리턴 void

registerUniversalTagAttributes() 보호된 메소드

Should be used inside registerArguments();
protected registerUniversalTagAttributes ( ) : void
리턴 void

프로퍼티 상세

$escapeOutput 보호되어 있는 프로퍼티

Disable escaping of tag based ViewHelpers so that the rendered tag is not htmlspecialchar'd
protected bool $escapeOutput
리턴 boolean

$tag 보호되어 있는 프로퍼티

Tag builder instance
protected TagBuilder,TYPO3Fluid\Fluid\Core\ViewHelper $tag
리턴 TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder

$tagName 보호되어 있는 프로퍼티

Name of the tag to be created by this view helper
protected string $tagName
리턴 string