protected function _pushParent(&$parent)
    {
        $children    = &$this->_getElementChildren($parent);
        $pathSegment = $this->_getElementPathSegment(null, $parent);

        $this->_pushPathSegment($pathSegment);

        reset($children);
        array_unshift($this->parents, $children);
    }
protected function _pushParent(&$parent)
    {
        $children    = &$this->_getElementChildren($parent);
        $pathSegment = $this->_getElementPathSegment(null, $parent);

        $this->_pushPathSegment($pathSegment);

        reset($children);
        array_unshift($this->parents, $children);
    }
protected function _pushParent ( & $ parent ) { $ children = & $ this -> _getElementChildren ( $ parent ) ; $ pathSegment = $ this -> _getElementPathSegment ( null , $ parent ) ; $ this -> _pushPathSegment ( $ pathSegment ) ; reset ( $ children ) ; array_unshift ( $ this -> parents , $ children ) ; }
Adds an iterable parent onto the stack.

The stack is there to maintain a trace of hierarchy.

@since [*next-version*]

@param Iterator|array $parent The parent.
Adds an iterable parent onto the stack .