DebugImplementation
class DebugImplementation extends JoinImplementation (View source)
A Fusion object for debugging fusion-values
If only value is given it is debugged directly. Otherwise all keys except title an plaintext are debugged.
//fusionPath value The variable to display a dump of. //fusionPath title $title optional custom title for the debug output //fusionPath plaintext If true, the dump is in plain text, if false the debug output is in HTML format. If not specified, the mode is guessed from FLOW_SAPITYPE
Properties
protected Runtime | $runtime | from AbstractFusionObject | |
protected string | $path | The Fusion path currently being rendered |
from AbstractFusionObject |
protected string | $fusionObjectName | Name of this Fusion object, like Neos.Neos:Text |
from AbstractFusionObject |
protected array | $tsValueCache | from AbstractFusionObject | |
protected array internal | $properties | List of properties which have been set using array access. We store this for every Fusion object in order to do things like: x = Foo { a = 'foo' b = ${this.a + 'bar'} } |
from AbstractArrayFusionObject |
protected array | $ignoreProperties | If you iterate over "properties" these in here should usually be ignored. |
|
protected DebugStack | $stack |
Methods
Return the values in a human readable form
Return the Fusion value relative to this Fusion object (with processors etc applied).
No description
Sort the Fusion objects inside $this->properties depending on:
- numerical ordering
- position meta-property
No description
No description
Details
__construct(Runtime $runtime, string $path, string $fusionObjectName)
Constructor
mixed
evaluate()
Return the values in a human readable form
Runtime
getRuntime()
Get the Fusion runtime this object was created in.
protected mixed
fusionValue(string $path)
Return the Fusion value relative to this Fusion object (with processors etc applied).
Note that subsequent calls of tsValue() with the same Fusion path will return the same values since the first evaluated value will be cached in memory.
bool
offsetExists(mixed $offset)
No description
mixed
offsetGet(mixed $offset)
No description
void
offsetSet(mixed $offset, mixed $value)
No description
void
offsetUnset(mixed $offset)
No description
void
setIgnoreProperties(array $ignoreProperties = [])
No description
protected array
sortNestedFusionKeys()
Sort the Fusion objects inside $this->properties depending on:
- numerical ordering
- position meta-property
This will ignore all properties defined in "@ignoreProperties" in Fusion
string
getGlue()
Get the glue to insert between items
string
getTitle()
No description
bool
getPlaintext()
No description