PHP Class FluidTYPO3\Vhs\ViewHelpers\Once\AbstractOnceViewHelper

Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper
Datei anzeigen Open project: fluidtypo3/vhs

Protected Properties

Property Type Description
$identifiers array Standard storage - static variable meaning uniqueness of $identifier across each Request, i.e. unique to each individual plugin/content.

Public Methods

Method Description
initializeArguments ( ) : void Initialize arguments
render ( ) : string Standard render method. Implementers should override the assertShouldSkip() method and/or the getIdentifier() and storeIdentifier() methods as applies to each implementers method of storing identifiers.

Protected Methods

Method Description
assertShouldSkip ( ) : boolean
getIdentifier ( ) : string
removeIfExpired ( ) : void
renderThenChild ( ) : string Override: forcibly disables page caching - a TRUE condition in this ViewHelper means page content would be depending on the current visitor's session/cookie/auth etc.
storeIdentifier ( )

Method Details

assertShouldSkip() protected method

protected assertShouldSkip ( ) : boolean
return boolean

getIdentifier() protected method

protected getIdentifier ( ) : string
return string

initializeArguments() public method

Initialize arguments
public initializeArguments ( ) : void
return void

removeIfExpired() protected method

protected removeIfExpired ( ) : void
return void

render() public method

Standard render method. Implementers should override the assertShouldSkip() method and/or the getIdentifier() and storeIdentifier() methods as applies to each implementers method of storing identifiers.
public render ( ) : string
return string

renderThenChild() protected method

Returns value of "then" attribute. If then attribute is not set, iterates through child nodes and renders ThenViewHelper. If then attribute is not set and no ThenViewHelper and no ElseViewHelper is found, all child nodes are rendered
protected renderThenChild ( ) : string
return string rendered ThenViewHelper or contents of if no ThenViewHelper was found

storeIdentifier() protected method

protected storeIdentifier ( )

Property Details

$identifiers protected_oe static_oe property

Standard storage - static variable meaning uniqueness of $identifier across each Request, i.e. unique to each individual plugin/content.
protected static array $identifiers
return array