public function getBreadcrumb(Page $page = null, $breadcrumb = array())
    {
        if (null === $this->breadcrumb) {
            $page = (null !== $page) ? $page : $this;
            $breadcrumb[] = $page;
            if (null !== $page->getParent()) {
                return $this->getBreadcrumb($page->getParent(), $breadcrumb);
            } else {
                $this->breadcrumb = $breadcrumb;
            }
        }

        return $this->breadcrumb;
    }
public function getBreadcrumb(Page $page = null, $breadcrumb = array())
    {
        if (null === $this->breadcrumb) {
            $page = (null !== $page) ? $page : $this;
            $breadcrumb[] = $page;
            if (null !== $page->getParent()) {
                return $this->getBreadcrumb($page->getParent(), $breadcrumb);
            } else {
                $this->breadcrumb = $breadcrumb;
            }
        }

        return $this->breadcrumb;
    }
public function getBreadcrumb ( Page $ page = null , $ breadcrumb = array ( ) ) { if ( null === $ this -> breadcrumb ) { $ page = ( null !== $ page ) ? $ page : $ this ; $ breadcrumb [ ] = $ page ; if ( null !== $ page -> getParent ( ) ) { return $ this -> getBreadcrumb ( $ page -> getParent ( ) , $ breadcrumb ) ; } else { $ this -> breadcrumb = $ breadcrumb ; } } return $ this -> breadcrumb ; }
Returns an array of the ascendants.

@param  Page                 $page
@param  array                $breadcrumb

@return Page[]

@deprecated
Returns an array of the ascendants .