src/ShopBundle/objects/db/TShop.class.php
public static function GetActiveRootCategory()
    {
        static $oActiveRootCategory = 'x';
        if ('x' === $oActiveRootCategory) {
            $oActiveRootCategory = null;
            $oActiveCategory = self::getShopService()->GetActiveCategory();
            if (null !== $oActiveCategory) {
                $oActiveRootCategory = $oActiveCategory->GetRootCategory();
            }
        }

        return $oActiveRootCategory;
    }
public static function GetActiveRootCategory()
    {
        static $oActiveRootCategory = 'x';
        if ('x' === $oActiveRootCategory) {
            $oActiveRootCategory = null;
            $oActiveCategory = self::getShopService()->GetActiveCategory();
            if (null !== $oActiveCategory) {
                $oActiveRootCategory = $oActiveCategory->GetRootCategory();
            }
        }

        return $oActiveRootCategory;
    }
public static function GetActiveRootCategory ( ) { static $ oActiveRootCategory = 'x' ; if ( 'x' === $ oActiveRootCategory ) { $ oActiveRootCategory = null ; $ oActiveCategory = self :: getShopService ( ) -> GetActiveCategory ( ) ; if ( null !== $ oActiveCategory ) { $ oActiveRootCategory = $ oActiveCategory -> GetRootCategory ( ) ; } } return $ oActiveRootCategory ; }
return the active root category.

@return TdbShopCategory
return the active root category .