private function IsTrail()
    {
        $pageItem = $this->naviItem->GetPageItem();
        if (!$pageItem)
        {
            return false;
        }
        $parent = PageRenderer::Page()->GetParent();
        $itemPage = $pageItem->GetPage();
        while ($parent)
        {
            if ($itemPage->Equals($parent))
            {
                return true;
            }
            $parent = $parent->GetParent();
        }
        return false;
    }
private function IsTrail()
    {
        $pageItem = $this->naviItem->GetPageItem();
        if (!$pageItem)
        {
            return false;
        }
        $parent = PageRenderer::Page()->GetParent();
        $itemPage = $pageItem->GetPage();
        while ($parent)
        {
            if ($itemPage->Equals($parent))
            {
                return true;
            }
            $parent = $parent->GetParent();
        }
        return false;
    }
private function IsTrail ( ) { $ pageItem = $ this -> naviItem -> GetPageItem ( ) ; if ( ! $ pageItem ) { return false ; } $ parent = PageRenderer :: Page ( ) -> GetParent ( ) ; $ itemPage = $ pageItem -> GetPage ( ) ; while ( $ parent ) { if ( $ itemPage -> Equals ( $ parent ) ) { return true ; } $ parent = $ parent -> GetParent ( ) ; } return false ; }
Checks if the current navigation item points to a parent of the current page
@return boolean Returns true if the current page is a child of the current item
Checks if the current navigation item points to a parent of the current page