PHP Class Neos\Fusion\TypoScriptObjects\AbstractTypoScriptObject

Inheritance: implements ArrayAccess
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$path string The TypoScript path currently being rendered
$tsRuntime Neos\Fusion\Core\Runtime
$tsValueCache array
$typoScriptObjectName string Name of this TypoScript object, like Neos.Neos:Text

Public Methods

Method Description
__construct ( Runtime $tsRuntime, string $path, string $typoScriptObjectName ) Constructor
evaluate ( ) : mixed Evaluate this TypoScript object and return the result
getTsRuntime ( ) : Runtime Get the TypoScript runtime this object was created in.
offsetExists ( mixed $offset ) : boolean Dummy implementation of ArrayAccess to allow this.XXX access in processors.
offsetGet ( mixed $offset ) : mixed Dummy implementation of ArrayAccess to allow this.XXX access in processors.
offsetSet ( mixed $offset, mixed $value ) : void Dummy implementation of ArrayAccess to allow this.XXX access in processors.
offsetUnset ( mixed $offset ) : void Dummy implementation of ArrayAccess to allow this.XXX access in processors.

Protected Methods

Method Description
tsValue ( string $path ) : mixed Return the TypoScript value relative to this TypoScript object (with processors etc applied).

Method Details

__construct() public method

Constructor
public __construct ( Runtime $tsRuntime, string $path, string $typoScriptObjectName )
$tsRuntime Neos\Fusion\Core\Runtime
$path string
$typoScriptObjectName string

evaluate() abstract public method

Evaluate this TypoScript object and return the result
abstract public evaluate ( ) : mixed
return mixed

getTsRuntime() public method

Get the TypoScript runtime this object was created in.
public getTsRuntime ( ) : Runtime
return Neos\Fusion\Core\Runtime

offsetExists() public method

Dummy implementation of ArrayAccess to allow this.XXX access in processors.
public offsetExists ( mixed $offset ) : boolean
$offset mixed
return boolean

offsetGet() public method

Dummy implementation of ArrayAccess to allow this.XXX access in processors.
public offsetGet ( mixed $offset ) : mixed
$offset mixed
return mixed

offsetSet() public method

Dummy implementation of ArrayAccess to allow this.XXX access in processors.
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed
$value mixed
return void

offsetUnset() public method

Dummy implementation of ArrayAccess to allow this.XXX access in processors.
public offsetUnset ( mixed $offset ) : void
$offset mixed
return void

tsValue() protected method

Note that subsequent calls of tsValue() with the same TypoScript path will return the same values since the first evaluated value will be cached in memory.
protected tsValue ( string $path ) : mixed
$path string
return mixed

Property Details

$path protected property

The TypoScript path currently being rendered
protected string $path
return string

$tsRuntime protected property

protected Runtime,Neos\Fusion\Core $tsRuntime
return Neos\Fusion\Core\Runtime

$tsValueCache protected property

protected array $tsValueCache
return array

$typoScriptObjectName protected property

Name of this TypoScript object, like Neos.Neos:Text
protected string $typoScriptObjectName
return string