Neos.Fusion/Classes/Core/Parser.php
protected function &getValueFromObjectTree(array $objectPathArray, &$objectTree = null)
    {
        if (is_null($objectTree)) {
            $objectTree = &$this->objectTree;
        }

        if (count($objectPathArray) > 0) {
            $currentKey = array_shift($objectPathArray);
            if (is_numeric($currentKey)) {
                $currentKey = (int)$currentKey;
            }
            if (!isset($objectTree[$currentKey])) {
                $objectTree[$currentKey] = [];
            }
            $value = &$this->getValueFromObjectTree($objectPathArray, $objectTree[$currentKey]);
        } else {
            $value = &$objectTree;
        }
        return $value;
    }
protected function &getValueFromObjectTree(array $objectPathArray, &$objectTree = null)
    {
        if (is_null($objectTree)) {
            $objectTree = &$this->objectTree;
        }

        if (count($objectPathArray) > 0) {
            $currentKey = array_shift($objectPathArray);
            if (is_numeric($currentKey)) {
                $currentKey = (int)$currentKey;
            }
            if (!isset($objectTree[$currentKey])) {
                $objectTree[$currentKey] = [];
            }
            $value = &$this->getValueFromObjectTree($objectPathArray, $objectTree[$currentKey]);
        } else {
            $value = &$objectTree;
        }
        return $value;
    }
protected function & getValueFromObjectTree ( array $ objectPathArray , & $ objectTree = null ) { if ( is_null ( $ objectTree ) ) { $ objectTree = & $ this -> objectTree ; } if ( count ( $ objectPathArray ) > 0 ) { $ currentKey = array_shift ( $ objectPathArray ) ; if ( is_numeric ( $ currentKey ) ) { $ currentKey = ( int ) $ currentKey ; } if ( ! isset ( $ objectTree [ $ currentKey ] ) ) { $ objectTree [ $ currentKey ] = [ ] ; } $ value = & $ this -> getValueFromObjectTree ( $ objectPathArray , $ objectTree [ $ currentKey ] ) ; } else { $ value = & $ objectTree ; } return $ value ; }
Retrieves a value from a node in the object tree, specified by the object path array.

@param array $objectPathArray The object path, specifying the node to retrieve the value of
@param array $objectTree The current (sub-) tree, used internally - don't specify!
@return mixed The value
Retrieves a value from a node in the object tree specified by the object path array .