Pathfinder

in package

Methods

Combines the query and an object to retrieve a list of nodes that are to be used as node-point in a template.

publicfind(object $object, string $query) : \Traversable|\phpDocumentor\Transformer\Writer\list

This method interprets the provided query string and walks through the given object to find the correct element. This method will silently fail if an invalid query was provided; in such a case the given object is returned.

Parameters

$object : object
$query : string

Returns

\Traversable|\phpDocumentor\Transformer\Writer\list

Walks an object graph and/or array using a twig query string.

privatewalkObjectTree(Traversable|mixed $objectOrArray, string $query) : mixed

Parameters

$objectOrArray : Traversable|mixed
$query : string

A path to walk separated by dots, i.e. namespace.namespaces.

Returns

mixed