src/ShopBundle/objects/TShopCategoryTree/TShopCategoryTree.class.php
protected function RenderCategoryName($sListFilterItemId = false, $bShowArticleCount = false, $iLevelCount = 1)
    {
        $aClass = array('CategoryName');
        if ($this->bIsActive) {
            $aClass[] = 'active';
            $aClass[] = 'expanded';
        }
        $sHtml = '<a class="'.implode(' ', $aClass).'" href="'.$this->GetCategoryURL($sListFilterItemId).'">'.TGlobal::OutHtml($this->oRealCategory->GetName());

        if ($bShowArticleCount) {
            $sHtml .= $this->RenderCategoryCount();
        }
        $sHtml .= '</a>';

        return $sHtml;
    }
protected function RenderCategoryName($sListFilterItemId = false, $bShowArticleCount = false, $iLevelCount = 1)
    {
        $aClass = array('CategoryName');
        if ($this->bIsActive) {
            $aClass[] = 'active';
            $aClass[] = 'expanded';
        }
        $sHtml = '<a class="'.implode(' ', $aClass).'" href="'.$this->GetCategoryURL($sListFilterItemId).'">'.TGlobal::OutHtml($this->oRealCategory->GetName());

        if ($bShowArticleCount) {
            $sHtml .= $this->RenderCategoryCount();
        }
        $sHtml .= '</a>';

        return $sHtml;
    }
protected function RenderCategoryName ( $ sListFilterItemId = false , $ bShowArticleCount = false , $ iLevelCount = 1 ) { $ aClass = array ( 'CategoryName' ) ; if ( $ this -> bIsActive ) { $ aClass [ ] = 'active' ; $ aClass [ ] = 'expanded' ; } $ sHtml = '<a class="' . implode ( ' ' , $ aClass ) . '" href="' . $ this -> GetCategoryURL ( $ sListFilterItemId ) . '">' . TGlobal :: OutHtml ( $ this -> oRealCategory -> GetName ( ) ) ; if ( $ bShowArticleCount ) { $ sHtml .= $ this -> RenderCategoryCount ( ) ; } $ sHtml .= '</a>' ; return $ sHtml ; }
Renders the category name and item count.

@param bool $sListFilterItemId
@param bool $bShowArticleCount
@param int  $iLevelCount

@return string
Renders the category name and item count .