Public Member Functions | |
getArticleMainUrl ($oArticle, $iLang=null) | |
getArticleUrl ($oArticle, $iLang=null, $iType=0) | |
onDeleteArticle ($oArticle) | |
Static Public Member Functions | |
static | getInstance () |
Protected Member Functions | |
_getUrlExtension () | |
_getProductForLang ($oArticle, $iLang) | |
_getArticleRecommUri ($oArticle, $iLang) | |
_getRecomm ($oArticle, $iLang) | |
_getListType () | |
_getArticleTagUri ($oArticle, $iLang, $blRegenerate=false) | |
_getTag ($oArticle, $iLang) | |
_createArticleCategoryUri ($oArticle, $oCategory, $iLang) | |
_getArticleUri ($oArticle, $iLang, $blRegenerate=false) | |
_getCategory ($oArticle, $iLang) | |
_getArticleMainUri ($oArticle, $iLang) | |
_prepareArticleTitle ($oArticle) | |
_getArticleVendorUri ($oArticle, $iLang, $blRegenerate=false) | |
_getVendor ($oArticle, $iLang) | |
_getArticleManufacturerUri ($oArticle, $iLang, $blRegenerate=false) | |
_getManufacturer ($oArticle, $iLang) | |
_getAltUri ($sObjectId, $iLang) | |
Static Protected Attributes | |
static | $_instance = null |
static | $_aTitleCache = array() |
Seo encoder for articles
Definition at line 7 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._createArticleCategoryUri | ( | $ | oArticle, | |
$ | oCategory, | |||
$ | iLang | |||
) | [protected] |
create article uri for given category and save it
oxArticle | $oArticle article object | |
oxCategory | $oCategory category object | |
int | $iLang language to generate uri for |
Definition at line 204 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getAltUri | ( | $ | sObjectId, | |
$ | iLang | |||
) | [protected] |
Returns alternative uri used while updating seo
string | $sObjectId object id | |
int | $iLang language id |
Reimplemented from oxSeoEncoder.
Definition at line 624 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getArticleMainUri | ( | $ | oArticle, | |
$ | iLang | |||
) | [protected] |
Returns SEO uri for passed article
oxarticle | $oArticle article object | |
int | $iLang language id |
Definition at line 301 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getArticleManufacturerUri | ( | $ | oArticle, | |
$ | iLang, | |||
$ | blRegenerate = false | |||
) | [protected] |
Returns manufacturer seo uri for current article
oxarticle | $oArticle article object | |
int | $iLang language id | |
bool | $blRegenerate if TRUE forces seo url regeneration |
Definition at line 472 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getArticleRecommUri | ( | $ | oArticle, | |
$ | iLang | |||
) | [protected] |
Returns SEO uri for passed article and active tag
oxarticle | $oArticle article object | |
int | $iLang language id |
Definition at line 87 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getArticleTagUri | ( | $ | oArticle, | |
$ | iLang, | |||
$ | blRegenerate = false | |||
) | [protected] |
Returns SEO uri for passed article and active tag
oxarticle | $oArticle article object | |
int | $iLang language id | |
bool | $blRegenerate if TRUE forces seo url regeneration |
Definition at line 159 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getArticleUri | ( | $ | oArticle, | |
$ | iLang, | |||
$ | blRegenerate = false | |||
) | [protected] |
Returns SEO uri for passed article
oxarticle | $oArticle article object | |
int | $iLang language id | |
bool | $blRegenerate if TRUE forces seo url regeneration |
Definition at line 246 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getArticleVendorUri | ( | $ | oArticle, | |
$ | iLang, | |||
$ | blRegenerate = false | |||
) | [protected] |
Returns vendor seo uri for current article
oxarticle | $oArticle article object | |
int | $iLang language id | |
bool | $blRegenerate if TRUE forces seo url regeneration |
Definition at line 394 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getCategory | ( | $ | oArticle, | |
$ | iLang | |||
) | [protected] |
Returns active category if available
oxarticle | $oArticle product | |
int | $iLang language id |
Definition at line 283 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getListType | ( | ) | [protected] |
oxSeoEncoderArticle._getManufacturer | ( | $ | oArticle, | |
$ | iLang | |||
) | [protected] |
Returns active manufacturer if available
oxarticle | $oArticle product | |
int | $iLang language id |
Definition at line 518 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getProductForLang | ( | $ | oArticle, | |
$ | iLang | |||
) | [protected] |
Checks if current article is in same language as preferred (language id passed by param). In case languages are not the same - reloads article object in different language
oxarticle | $oArticle article to check language | |
int | $iLang user defined language id |
Definition at line 68 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getRecomm | ( | $ | oArticle, | |
$ | iLang | |||
) | [protected] |
Returns active recommendation list object if available
oxarticle | $oArticle product | |
int | $iLang language id |
Definition at line 130 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getTag | ( | $ | oArticle, | |
$ | iLang | |||
) | [protected] |
Returns active tag if available
oxarticle | $oArticle product | |
int | $iLang language id |
Definition at line 185 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getUrlExtension | ( | ) | [protected] |
Returns target "extension" (.html)
Reimplemented from oxSeoEncoder.
Definition at line 54 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._getVendor | ( | $ | oArticle, | |
$ | iLang | |||
) | [protected] |
Returns active vendor if available
oxarticle | $oArticle product | |
int | $iLang language id |
Definition at line 441 of file oxseoencoderarticle.php.
oxSeoEncoderArticle._prepareArticleTitle | ( | $ | oArticle | ) | [protected] |
Returns seo title for current article (if oxtitle field is empty, oxartnum is used). Additionally - if oxvarselect is set - title is appended with its value
oxarticle | $oArticle article object |
Definition at line 353 of file oxseoencoderarticle.php.
oxSeoEncoderArticle.getArticleMainUrl | ( | $ | oArticle, | |
$ | iLang = null | |||
) |
return article main url, with path of its default category
oxarticle | $oArticle product | |
int | $iLang language id |
Definition at line 549 of file oxseoencoderarticle.php.
oxSeoEncoderArticle.getArticleUrl | ( | $ | oArticle, | |
$ | iLang = null , |
|||
$ | iType = 0 | |||
) |
Encodes article URLs into SEO format
Definition at line 567 of file oxseoencoderarticle.php.
static oxSeoEncoderArticle.getInstance | ( | ) | [static] |
Singleton method
Reimplemented from oxSeoEncoder.
Definition at line 28 of file oxseoencoderarticle.php.
oxSeoEncoderArticle.onDeleteArticle | ( | $ | oArticle | ) |
deletes article seo entries
oxarticle | $oArticle article to remove |
Definition at line 608 of file oxseoencoderarticle.php.
oxSeoEncoderArticle.$_aTitleCache = array() [static, protected] |
Definition at line 21 of file oxseoencoderarticle.php.
oxSeoEncoderArticle.$_instance = null [static, protected] |
Reimplemented from oxSeoEncoder.
Definition at line 14 of file oxseoencoderarticle.php.