PHP Class 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.
Inheritance: implements Neos\FluidAdaptor\Core\Parser\SyntaxTree\TemplateObjectAccessInterface, implements ArrayAccess, implements IteratorAggregate, implements Countable
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

__toString() public méthode

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
Résultat string

count() public méthode

public count ( ) : integer
Résultat integer

getIterator() public méthode

Iterates through all subelements.
public getIterator ( ) : ArrayIterator
Résultat ArrayIterator

objectAccess() public méthode

Evaluates TypoScript objects and eel expressions.
public objectAccess ( ) : FusionPathProxy | mixed
Résultat FusionPathProxy | mixed

offsetExists() public méthode

TRUE if a given subpath exists, FALSE otherwise.
public offsetExists ( string $offset ) : boolean
$offset string
Résultat boolean

offsetGet() public méthode

Return the object at $offset; evaluating simple types right away, and wrapping arrays into ourselves again.
public offsetGet ( string $offset ) : mixed | FusionPathProxy
$offset string
Résultat mixed | FusionPathProxy

offsetSet() public méthode

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

offsetUnset() public méthode

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

Property Details

$fusionRuntime protected_oe property

Reference to the TypoScript Runtime which controls the whole rendering
protected Runtime,Neos\Fusion\Core $fusionRuntime
Résultat Neos\Fusion\Core\Runtime

$partialTypoScriptTree protected_oe property

This is a part of the TypoScript tree built when evaluating $this->path.
protected array $partialTypoScriptTree
Résultat array

$path protected_oe property

The TypoScript path this object proxies
protected string $path
Résultat string

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Résultat Neos\Flow\Log\SystemLoggerInterface

$templateImplementation protected_oe property

Reference to the "parent" TypoScript object
protected TemplateImplementation,Neos\Fusion\TypoScriptObjects $templateImplementation
Résultat Neos\Fusion\TypoScriptObjects\TemplateImplementation