src/ShopBundle/objects/db/TShopCategory.class.php
public function &GetRootCategory()
    {
        $oRootCategory = &$this->GetFromInternalCache('oRootCategory');
        if (is_null($oRootCategory)) {
            $oRootCategory = clone $this;
            while (!empty($oRootCategory->fieldShopCategoryId)) {
                $oRootCategory = &$oRootCategory->GetParent();
            }
            $this->SetInternalCache('oRootCategory', $oRootCategory);
        }

        return $oRootCategory;
    }
public function &GetRootCategory()
    {
        $oRootCategory = &$this->GetFromInternalCache('oRootCategory');
        if (is_null($oRootCategory)) {
            $oRootCategory = clone $this;
            while (!empty($oRootCategory->fieldShopCategoryId)) {
                $oRootCategory = &$oRootCategory->GetParent();
            }
            $this->SetInternalCache('oRootCategory', $oRootCategory);
        }

        return $oRootCategory;
    }
public function & GetRootCategory ( ) { $ oRootCategory = & $ this -> GetFromInternalCache ( 'oRootCategory' ) ; if ( is_null ( $ oRootCategory ) ) { $ oRootCategory = clone $ this ; while ( ! empty ( $ oRootCategory -> fieldShopCategoryId ) ) { $ oRootCategory = & $ oRootCategory -> GetParent ( ) ; } $ this -> SetInternalCache ( 'oRootCategory' , $ oRootCategory ) ; } return $ oRootCategory ; }
return the currents category root category.

@return TdbShopCategory
return the currents category root category .