CurrentObjectPath
FinalYes
Internal state class to track the current hierarchy in tree.
This is important in combination with block open "{" and block close "}" brackets. Also used in BE Template Object Browser tree rendering.
Tags
Table of Contents
Methods
- __construct() : mixed
- append() : void
- getAll() : array<string|int, NodeInterface>
- getFirst() : NodeInterface
- getLast() : NodeInterface
- getPathAsString() : string
- Turn current object path into a string. Quote dots in keys.
- getSecondLast() : NodeInterface
- removeLast() : void
Methods
__construct()
public
__construct(NodeInterface ...$path) : mixed
Parameters
- $path : NodeInterface
append()
public
append(NodeInterface $node) : void
Parameters
- $node : NodeInterface
getAll()
public
getAll() : array<string|int, NodeInterface>
Return values
array<string|int, NodeInterface>getFirst()
public
getFirst() : NodeInterface
Return values
NodeInterfacegetLast()
public
getLast() : NodeInterface
Return values
NodeInterfacegetPathAsString()
Turn current object path into a string. Quote dots in keys.
public
getPathAsString() : string
Used in BE Template Object Browser tree, expand and search handling. Not implementing __toString() here since Fluid can't call this.
Example: page.10.foo.bar.baz
Return values
stringgetSecondLast()
public
getSecondLast() : NodeInterface
Return values
NodeInterfaceremoveLast()
public
removeLast() : void