src/ShopBundle/objects/db/TShopCategory.class.php
public function GetCurrentColorCode($sDefaultColor = '000000')
    {
        $oRootCat = $this->GetRootCategory();
        /** @var $oRootCat TdbShopCategory */
        $sColorcode = $oRootCat->fieldColorcode;
        if ('' == $sColorcode) {
            $sColorcode = $sDefaultColor;
        }

        return $sColorcode;
    }
public function GetCurrentColorCode($sDefaultColor = '000000')
    {
        $oRootCat = $this->GetRootCategory();
        /** @var $oRootCat TdbShopCategory */
        $sColorcode = $oRootCat->fieldColorcode;
        if ('' == $sColorcode) {
            $sColorcode = $sDefaultColor;
        }

        return $sColorcode;
    }
public function GetCurrentColorCode ( $ sDefaultColor = '000000' ) { $ oRootCat = $ this -> GetRootCategory ( ) ; /** @var $oRootCat TdbShopCategory */ $ sColorcode = $ oRootCat -> fieldColorcode ; if ( '' == $ sColorcode ) { $ sColorcode = $ sDefaultColor ; } return $ sColorcode ; }
returns the category color.

@param string $sDefaultColor - default color = black;

@return string
returns the category color .