public function Breadcrumbs($maxDepth = 20, $unlinked = false, $stopAtPageType = false, $showHidden = false)
    {
        $page = Controller::curr();
        $pages = array();
        $pages[] = $this->owner;
        while ($page
            && (!$maxDepth || count($pages) < $maxDepth)
            && (!$stopAtPageType || $page->ClassName != $stopAtPageType)
        ) {
            if ($showHidden || $page->ShowInMenus || ($page->ID == $this->owner->ID)) {
                $pages[] = $page;
            }
            $page = $page->Parent;
        }
        $template = new SSViewer('BreadcrumbsTemplate');

        return $template->process($this->owner->customise(new ArrayData(array(
            'Pages' => new ArrayList(array_reverse($pages)),
        ))));
    }
public function Breadcrumbs($maxDepth = 20, $unlinked = false, $stopAtPageType = false, $showHidden = false)
    {
        $page = Controller::curr();
        $pages = array();
        $pages[] = $this->owner;
        while ($page
            && (!$maxDepth || count($pages) < $maxDepth)
            && (!$stopAtPageType || $page->ClassName != $stopAtPageType)
        ) {
            if ($showHidden || $page->ShowInMenus || ($page->ID == $this->owner->ID)) {
                $pages[] = $page;
            }
            $page = $page->Parent;
        }
        $template = new SSViewer('BreadcrumbsTemplate');

        return $template->process($this->owner->customise(new ArrayData(array(
            'Pages' => new ArrayList(array_reverse($pages)),
        ))));
    }
public function Breadcrumbs ( $ maxDepth = 20 , $ unlinked = false , $ stopAtPageType = false , $ showHidden = false ) { $ page = Controller :: curr ( ) ; $ pages = array ( ) ; $ pages [ ] = $ this -> owner ; while ( $ page && ( ! $ maxDepth || count ( $ pages ) < $ maxDepth ) && ( ! $ stopAtPageType || $ page -> ClassName != $ stopAtPageType ) ) { if ( $ showHidden || $ page -> ShowInMenus || ( $ page -> ID == $ this -> owner -> ID ) ) { $ pages [ ] = $ page ; } $ page = $ page -> Parent ; } $ template = new SSViewer ( 'BreadcrumbsTemplate' ) ; return $ template -> process ( $ this -> owner -> customise ( new ArrayData ( array ( 'Pages' => new ArrayList ( array_reverse ( $ pages ) ) , ) ) ) ) ; }
Produce the correct breadcrumb trail for use on the DataObject Item Page.

@param int $maxDepth
@param bool $unlinked
@param bool $stopAtPageType
@param bool $showHidden

@return DBHTMLText
Produce the correct breadcrumb trail for use on the DataObject Item Page .