PHP Класс Neos\Fusion\TypoScriptObjects\Helpers\FusionPathProxy

It wraps a part of the Fusion tree which does not contain Fusion objects or Eel expressions. This class is instantiated inside TemplateImplementation and is never used outside.
Наследование: implements Neos\FluidAdaptor\Core\Parser\SyntaxTree\TemplateObjectAccessInterface, implements ArrayAccess, implements IteratorAggregate, implements Countable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$fusionRuntime Neos\Fusion\Core\Runtime Reference to the TypoScript Runtime which controls the whole rendering
$partialTypoScriptTree array This is a part of the TypoScript tree built when evaluating $this->path.
$path string The TypoScript path this object proxies
$systemLogger Neos\Flow\Log\SystemLoggerInterface
$templateImplementation Neos\Fusion\TypoScriptObjects\TemplateImplementation Reference to the "parent" TypoScript object

Открытые методы

Метод Описание
__construct ( TemplateImplementation $templateImplementation, string $path, array $partialTypoScriptTree ) Constructor.
__toString ( ) : string Finally evaluate the TypoScript path
count ( ) : integer
getIterator ( ) : ArrayIterator Iterates through all subelements.
objectAccess ( ) : FusionPathProxy | mixed Post-Processor which is called whenever this object is encountered in a Fluid object access.
offsetExists ( string $offset ) : boolean TRUE if a given subpath exists, FALSE otherwise.
offsetGet ( string $offset ) : mixed | FusionPathProxy Return the object at $offset; evaluating simple types right away, and wrapping arrays into ourselves again.
offsetSet ( string $offset, mixed $value ) Stub to implement the ArrayAccess interface cleanly
offsetUnset ( string $offset ) Stub to implement the ArrayAccess interface cleanly

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( TemplateImplementation $templateImplementation, string $path, array $partialTypoScriptTree )
$templateImplementation Neos\Fusion\TypoScriptObjects\TemplateImplementation
$path string
$partialTypoScriptTree array

__toString() публичный Метод

As PHP does not like throwing an exception here, we render any exception using the configured TypoScript exception handler and will also catch and log any exceptions resulting from that as a last resort.
public __toString ( ) : string
Результат string

count() публичный Метод

public count ( ) : integer
Результат integer

getIterator() публичный Метод

Iterates through all subelements.
public getIterator ( ) : ArrayIterator
Результат ArrayIterator

objectAccess() публичный Метод

Evaluates TypoScript objects and eel expressions.
public objectAccess ( ) : FusionPathProxy | mixed
Результат FusionPathProxy | mixed

offsetExists() публичный Метод

TRUE if a given subpath exists, FALSE otherwise.
public offsetExists ( string $offset ) : boolean
$offset string
Результат boolean

offsetGet() публичный Метод

Return the object at $offset; evaluating simple types right away, and wrapping arrays into ourselves again.
public offsetGet ( string $offset ) : mixed | FusionPathProxy
$offset string
Результат mixed | FusionPathProxy

offsetSet() публичный Метод

Stub to implement the ArrayAccess interface cleanly
public offsetSet ( string $offset, mixed $value )
$offset string
$value mixed

offsetUnset() публичный Метод

Stub to implement the ArrayAccess interface cleanly
public offsetUnset ( string $offset )
$offset string

Описание свойств

$fusionRuntime защищенное свойство

Reference to the TypoScript Runtime which controls the whole rendering
protected Runtime,Neos\Fusion\Core $fusionRuntime
Результат Neos\Fusion\Core\Runtime

$partialTypoScriptTree защищенное свойство

This is a part of the TypoScript tree built when evaluating $this->path.
protected array $partialTypoScriptTree
Результат array

$path защищенное свойство

The TypoScript path this object proxies
protected string $path
Результат string

$systemLogger защищенное свойство

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Результат Neos\Flow\Log\SystemLoggerInterface

$templateImplementation защищенное свойство

Reference to the "parent" TypoScript object
protected TemplateImplementation,Neos\Fusion\TypoScriptObjects $templateImplementation
Результат Neos\Fusion\TypoScriptObjects\TemplateImplementation