source/Application/Model/SeoEncoderArticle.php
public function getArticleUrl($oArticle, $iLang = null, $iType = 0)
    {
        if (!isset($iLang)) {
            $iLang = $oArticle->getLanguage();
        }

        $sUri = null;
        switch ($iType) {
            case OXARTICLE_LINKTYPE_VENDOR:
                $sUri = $this->getArticleVendorUri($oArticle, $iLang);
                break;
            case OXARTICLE_LINKTYPE_MANUFACTURER:
                $sUri = $this->getArticleManufacturerUri($oArticle, $iLang);
                break;
            // @deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module.
            case OXARTICLE_LINKTYPE_RECOMM:
                $sUri = $this->getArticleRecommUri($oArticle, $iLang);
                break;
            // END deprecated
            case OXARTICLE_LINKTYPE_PRICECATEGORY: // goes price category urls to default (category urls)
            default:
                $sUri = $this->getArticleUri($oArticle, $iLang);
                break;
        }

        // if was unable to fetch type uri - returning main
        if (!$sUri) {
            $sUri = $this->getArticleMainUri($oArticle, $iLang);
        }

        return $this->_getFullUrl($sUri, $iLang);
    }
public function getArticleUrl($oArticle, $iLang = null, $iType = 0)
    {
        if (!isset($iLang)) {
            $iLang = $oArticle->getLanguage();
        }

        $sUri = null;
        switch ($iType) {
            case OXARTICLE_LINKTYPE_VENDOR:
                $sUri = $this->getArticleVendorUri($oArticle, $iLang);
                break;
            case OXARTICLE_LINKTYPE_MANUFACTURER:
                $sUri = $this->getArticleManufacturerUri($oArticle, $iLang);
                break;
            // @deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module.
            case OXARTICLE_LINKTYPE_RECOMM:
                $sUri = $this->getArticleRecommUri($oArticle, $iLang);
                break;
            // END deprecated
            case OXARTICLE_LINKTYPE_PRICECATEGORY: // goes price category urls to default (category urls)
            default:
                $sUri = $this->getArticleUri($oArticle, $iLang);
                break;
        }

        // if was unable to fetch type uri - returning main
        if (!$sUri) {
            $sUri = $this->getArticleMainUri($oArticle, $iLang);
        }

        return $this->_getFullUrl($sUri, $iLang);
    }
public function getArticleUrl ( $ oArticle , $ iLang = null , $ iType = 0 ) { if ( ! isset ( $ iLang ) ) { $ iLang = $ oArticle -> getLanguage ( ) ; } $ sUri = null ; switch ( $ iType ) { case OXARTICLE_LINKTYPE_VENDOR : $ sUri = $ this -> getArticleVendorUri ( $ oArticle , $ iLang ) ; break ; case OXARTICLE_LINKTYPE_MANUFACTURER : $ sUri = $ this -> getArticleManufacturerUri ( $ oArticle , $ iLang ) ; break ; // @deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module. case OXARTICLE_LINKTYPE_RECOMM : $ sUri = $ this -> getArticleRecommUri ( $ oArticle , $ iLang ) ; break ; // END deprecated case OXARTICLE_LINKTYPE_PRICECATEGORY : // goes price category urls to default (category urls) default : $ sUri = $ this -> getArticleUri ( $ oArticle , $ iLang ) ; break ; } // if was unable to fetch type uri - returning main if ( ! $ sUri ) { $ sUri = $ this -> getArticleMainUri ( $ oArticle , $ iLang ) ; } return $ this -> _getFullUrl ( $ sUri , $ iLang ) ; }
Encodes article URLs into SEO format

@param \OxidEsales\Eshop\Application\Model\Article $oArticle Article object
@param int                                         $iLang    language
@param int                                         $iType    type

@return string
Encodes article URLs into SEO format