src/ShopBundle/objects/db/TShopCategory.class.php
public function GetSeoPattern(&$sPaternIn)
    {
        //$sPaternIn = "[{PORTAL_NAME}] - [{CATEGORY_NAME}]"; //default
        $aPatRepl = null;

        if (!empty($this->sqlData['seo_pattern'])) {
            $sPaternIn = $this->sqlData['seo_pattern'];
        }

        $aPatRepl = array();
        $activePage = $this->getActivePageService()->getActivePage();
        $aPatRepl['PORTAL_NAME'] = $activePage->GetPortal()->GetTitle();
        $aPatRepl['PAGE_NAME'] = $activePage->GetName();
        $aPatRepl['CATEGORY_NAME'] = $this->GetName();

        return $aPatRepl;
    }
public function GetSeoPattern(&$sPaternIn)
    {
        //$sPaternIn = "[{PORTAL_NAME}] - [{CATEGORY_NAME}]"; //default
        $aPatRepl = null;

        if (!empty($this->sqlData['seo_pattern'])) {
            $sPaternIn = $this->sqlData['seo_pattern'];
        }

        $aPatRepl = array();
        $activePage = $this->getActivePageService()->getActivePage();
        $aPatRepl['PORTAL_NAME'] = $activePage->GetPortal()->GetTitle();
        $aPatRepl['PAGE_NAME'] = $activePage->GetName();
        $aPatRepl['CATEGORY_NAME'] = $this->GetName();

        return $aPatRepl;
    }
public function GetSeoPattern ( & $ sPaternIn ) { //$sPaternIn = "[{PORTAL_NAME}] - [{CATEGORY_NAME}]"; //default $ aPatRepl = null ; if ( ! empty ( $ this -> sqlData [ 'seo_pattern' ] ) ) { $ sPaternIn = $ this -> sqlData [ 'seo_pattern' ] ; } $ aPatRepl = array ( ) ; $ activePage = $ this -> getActivePageService ( ) -> getActivePage ( ) ; $ aPatRepl [ 'PORTAL_NAME' ] = $ activePage -> GetPortal ( ) -> GetTitle ( ) ; $ aPatRepl [ 'PAGE_NAME' ] = $ activePage -> GetName ( ) ; $ aPatRepl [ 'CATEGORY_NAME' ] = $ this -> GetName ( ) ; return $ aPatRepl ; }
Get SEO pattern of actual article.

@param string $sPaternIn

@return array
Get SEO pattern of actual article .