src/ShopBundle/objects/db/TShopCategory.class.php
public function GetNumberOfArticlesInCategory($bIncludeSubcategoriesInCount = false)
    {
        if ($bIncludeSubcategoriesInCount) {
            $oArticleList = $this->GetArticleListIncludingSubcategories();
        } else {
            $oArticleList = $this->GetArticleList();
        }

        return $oArticleList->Length();
    }
public function GetNumberOfArticlesInCategory($bIncludeSubcategoriesInCount = false)
    {
        if ($bIncludeSubcategoriesInCount) {
            $oArticleList = $this->GetArticleListIncludingSubcategories();
        } else {
            $oArticleList = $this->GetArticleList();
        }

        return $oArticleList->Length();
    }
public function GetNumberOfArticlesInCategory ( $ bIncludeSubcategoriesInCount = false ) { if ( $ bIncludeSubcategoriesInCount ) { $ oArticleList = $ this -> GetArticleListIncludingSubcategories ( ) ; } else { $ oArticleList = $ this -> GetArticleList ( ) ; } return $ oArticleList -> Length ( ) ; }
returns a count of the number of articles in the category. the method caches
the data since a count is expensive.

@param bool $bIncludeSubcategoriesInCount

@return int
returns a count of the number of articles in the category . the method caches the data since a count is expensive .