oxSeoEncoderArticle Class Reference

Inheritance diagram for oxSeoEncoderArticle:

Inheritance graph
[legend]
Collaboration diagram for oxSeoEncoderArticle:

Collaboration graph
[legend]

List of all members.


Detailed Description

Seo encoder for articles

Definition at line 7 of file oxseoencoderarticle.php.


Public Member Functions

 getArticleUrl ($oArticle, $iLang=null, $iType=0)
 getSeoCategories ($oArticle, $iLang=null)
 onDeleteArticle ($oArticle)

Static Public Member Functions

static getInstance ()

Protected Member Functions

 _getUrlExtension ()
 _getProductForLang ($oArticle, $iLang)
 _getArticleTagUri ($oArticle, $iLang=null)
 _getArticlePriceCategoryUri ($oArticle, $iLang=null)
 _getArticleUri ($oArticle, $iLang=null)
 _prepareArticleTitle ($oArticle)
 _getArticleVendorUri ($oArticle, $iLang=null)
 _getArticleManufacturerUri ($oArticle, $iLang=null)

Static Protected Attributes

static $_instance = null
static $_aTitleCache = array()

Member Function Documentation

static oxSeoEncoderArticle.getInstance (  )  [static]

Singleton method

Returns:
oxseoencoder

Reimplemented from oxSeoEncoder.

Definition at line 28 of file oxseoencoderarticle.php.

oxSeoEncoderArticle._getUrlExtension (  )  [protected]

Returns target "extension" (.html)

Returns:
string

Reimplemented from oxSeoEncoder.

Definition at line 47 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

Parameters:
oxarticle $oArticle article to check language
int $iLang user defined language id
Returns:
oxarticle

Definition at line 61 of file oxseoencoderarticle.php.

oxSeoEncoderArticle._getArticleTagUri ( oArticle,
iLang = null 
) [protected]

Returns SEO uri for passed article and active tag

Parameters:
object $oArticle article object
object $iLang language id [optional]
Returns:
string

Definition at line 80 of file oxseoencoderarticle.php.

oxSeoEncoderArticle._getArticlePriceCategoryUri ( oArticle,
iLang = null 
) [protected]

Returns SEO uri for passed article and price category

Parameters:
oxarticle $oArticle article object
int $iLang language id [optional]
Returns:
string

Definition at line 113 of file oxseoencoderarticle.php.

oxSeoEncoderArticle._getArticleUri ( oArticle,
iLang = null 
) [protected]

Returns SEO uri for passed article

Parameters:
oxarticle $oArticle article object
int $iLang language
Returns:
string

Definition at line 159 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

Parameters:
oxarticle $oArticle article object
Returns:
string

Definition at line 225 of file oxseoencoderarticle.php.

oxSeoEncoderArticle._getArticleVendorUri ( oArticle,
iLang = null 
) [protected]

Returns vendor seo uri for current article

Parameters:
oxarticle $oArticle article object
int $iLang language id (optional)
Returns:
string

Definition at line 264 of file oxseoencoderarticle.php.

oxSeoEncoderArticle._getArticleManufacturerUri ( oArticle,
iLang = null 
) [protected]

Returns manufacturer seo uri for current article

Parameters:
oxarticle $oArticle article object
int $iLang language id (optional)
Returns:
string

Definition at line 310 of file oxseoencoderarticle.php.

oxSeoEncoderArticle.getArticleUrl ( oArticle,
iLang = null,
iType = 0 
)

Encodes article URLs into SEO format

Parameters:
oxArticle $oArticle Article object
int $iLang language
int $iType type
Returns:
string

Definition at line 356 of file oxseoencoderarticle.php.

oxSeoEncoderArticle.getSeoCategories ( oArticle,
iLang = null 
)

Returns array of suitable categories for given article

Parameters:
oxArticle $oArticle article to search
int $iLang language
Returns:
oxList

Definition at line 393 of file oxseoencoderarticle.php.

oxSeoEncoderArticle.onDeleteArticle ( oArticle  ) 

deletes article seo entries

Parameters:
oxarticle $oArticle article to remove
Returns:
null

Definition at line 446 of file oxseoencoderarticle.php.


Member Data Documentation

oxSeoEncoderArticle.$_instance = null [static, protected]

Reimplemented from oxSeoEncoder.

Definition at line 14 of file oxseoencoderarticle.php.

oxSeoEncoderArticle.$_aTitleCache = array() [static, protected]

Definition at line 21 of file oxseoencoderarticle.php.


The documentation for this class was generated from the following file:

Generated on Tue Aug 18 09:25:43 2009 for OXID eShop CE by  doxygen 1.5.5