library/Helper/NavigationTree.php
protected function isAncestors($id)
    {
        $ancestors  = $this->ancestors;
        $baseParent = $this->getAncestors($this->currentPage);
        if (is_array($baseParent) && !empty($baseParent)) {
            $ancestors = array_merge($ancestors, $baseParent);
        }

        return in_array($id, $ancestors);
    }
protected function isAncestors($id)
    {
        $ancestors  = $this->ancestors;
        $baseParent = $this->getAncestors($this->currentPage);
        if (is_array($baseParent) && !empty($baseParent)) {
            $ancestors = array_merge($ancestors, $baseParent);
        }

        return in_array($id, $ancestors);
    }
protected function isAncestors ( $ id ) { $ ancestors = $ this -> ancestors ; $ baseParent = $ this -> getAncestors ( $ this -> currentPage ) ; if ( is_array ( $ baseParent ) && ! empty ( $ baseParent ) ) { $ ancestors = array_merge ( $ ancestors , $ baseParent ) ; } return in_array ( $ id , $ ancestors ) ; }
Checks if a specific id is in the ancestors array
@param  integer  $id
@return boolean
Checks if a specific id is in the ancestors array