src/ShopBundle/objects/db/TShopCategory.class.php
public function IsInCategoryPath($sCategoryId)
    {
        $oBreadCrumb = $this->GetBreadcrumb();
        $oMatchingNode = $oBreadCrumb->FindItemWithProperty('id', $sCategoryId);
        if ($oMatchingNode) {
            return true;
        } else {
            return false;
        }
    }
public function IsInCategoryPath($sCategoryId)
    {
        $oBreadCrumb = $this->GetBreadcrumb();
        $oMatchingNode = $oBreadCrumb->FindItemWithProperty('id', $sCategoryId);
        if ($oMatchingNode) {
            return true;
        } else {
            return false;
        }
    }
public function IsInCategoryPath ( $ sCategoryId ) { $ oBreadCrumb = $ this -> GetBreadcrumb ( ) ; $ oMatchingNode = $ oBreadCrumb -> FindItemWithProperty ( 'id' , $ sCategoryId ) ; if ( $ oMatchingNode ) { return true ; } else { return false ; } }
return true if the category id passed is in the path to this category.

@param string $sCategoryId

@return bool
return true if the category id passed is in the path to this category .