public function getPath()
    {
        $stack = array($this->getName());
        $current = $this;

        while ($parent = $current->getParent()) {
            array_unshift($stack, $parent->getName());
            $current = $parent;
        }

        return implode('/', $stack);
    }
public function getPath()
    {
        $stack = array($this->getName());
        $current = $this;

        while ($parent = $current->getParent()) {
            array_unshift($stack, $parent->getName());
            $current = $parent;
        }

        return implode('/', $stack);
    }
public function getPath ( ) { $ stack = array ( $ this -> getName ( ) ) ; $ current = $ this ; while ( $ parent = $ current -> getParent ( ) ) { array_unshift ( $ stack , $ parent -> getName ( ) ) ; $ current = $ parent ; } return implode ( '/' , $ stack ) ; }
returns the path name

@return string
returns the path name