src/ShopBundle/objects/db/TShopCategory.class.php
public function GetCategoryPathAsString($sSeparator = '/')
    {
        $sKey = 'sCatPathCache'.$sSeparator;

        $sPath = $this->GetFromInternalCache($sKey);
        if (is_null($sPath)) {
            $sPath = '';
            $oParent = &$this->GetParent();
            if ($oParent) {
                $sPath = $oParent->GetCategoryPathAsString($sSeparator);
            }
            if (!empty($sPath)) {
                $sPath .= $sSeparator;
            }
            $sPath .= $this->GetName();
            $this->SetInternalCache($sKey, $sPath);
        }

        return $sPath;
    }
public function GetCategoryPathAsString($sSeparator = '/')
    {
        $sKey = 'sCatPathCache'.$sSeparator;

        $sPath = $this->GetFromInternalCache($sKey);
        if (is_null($sPath)) {
            $sPath = '';
            $oParent = &$this->GetParent();
            if ($oParent) {
                $sPath = $oParent->GetCategoryPathAsString($sSeparator);
            }
            if (!empty($sPath)) {
                $sPath .= $sSeparator;
            }
            $sPath .= $this->GetName();
            $this->SetInternalCache($sKey, $sPath);
        }

        return $sPath;
    }
public function GetCategoryPathAsString ( $ sSeparator = '/' ) { $ sKey = 'sCatPathCache' . $ sSeparator ; $ sPath = $ this -> GetFromInternalCache ( $ sKey ) ; if ( is_null ( $ sPath ) ) { $ sPath = '' ; $ oParent = & $ this -> GetParent ( ) ; if ( $ oParent ) { $ sPath = $ oParent -> GetCategoryPathAsString ( $ sSeparator ) ; } if ( ! empty ( $ sPath ) ) { $ sPath .= $ sSeparator ; } $ sPath .= $ this -> GetName ( ) ; $ this -> SetInternalCache ( $ sKey , $ sPath ) ; } return $ sPath ; }
return the category path as a string, each node separated by the sSeparator.

@param string $sSeparator

@return string
return the category path as a string each node separated by the sSeparator .