OXID eShop CE  4.8.12
 All Classes Files Functions Variables Pages
oxSeoDecoder Class Reference
+ Inheritance diagram for oxSeoDecoder:
+ Collaboration diagram for oxSeoDecoder:

Public Member Functions

 parseStdUrl ($sUrl)
 decodeUrl ($sSeoUrl)
 processSeoCall ($sRequest=null, $sPath=null)
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 __construct ()
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _getIdent ($sSeoUrl, $blIgnore=false)
 _decodeOldUrl ($sSeoUrl)
 _addQueryString ($sUrl)
 _getSeoUrl ($sObjectId, $iLang, $iShopId)
 _decodeSimpleUrl ($sParams)
 _getObjectUrl ($sSeoId, $sTable, $iLanguage, $sType)
 _getParams ($sRequest, $sPath)

Additional Inherited Members

- Static Protected Attributes inherited from oxSuperCfg
static $_oConfig = null
static $_oSession = null
static $_oRights = null
static $_oActUser = null
static $_blIsAdmin = null

Detailed Description

Seo encoder base

Definition at line 7 of file oxseodecoder.php.

Member Function Documentation

oxSeoDecoder::_addQueryString (   $sUrl)
protected

Appends and returns given url with $_SERVER["QUERY_STRING"] value

Parameters
string$sUrlurl to append
Returns
string

Definition at line 120 of file oxseodecoder.php.

oxSeoDecoder::_decodeOldUrl (   $sSeoUrl)
protected

Checks if url is stored in history table and if it was found - tryes to fetch new url from seo table

Parameters
string$sSeoUrlSEO url

public

Returns
string || false

Definition at line 84 of file oxseodecoder.php.

oxSeoDecoder::_decodeSimpleUrl (   $sParams)
protected

Tries to fetch SEO url according to type II seo url data. If no specified data is found NULL will be returned

Parameters
string$sParamsrequest params (url chunk)
Returns
string

Definition at line 209 of file oxseodecoder.php.

oxSeoDecoder::_getIdent (   $sSeoUrl,
  $blIgnore = false 
)
protected

Returns ident (md5 of seo url) to fetch seo data from DB

Parameters
string$sSeoUrlseo url to calculate ident
bool$blIgnoreif FALSE - blocks from direct access when default language seo url with language ident executed
Returns
string

Definition at line 38 of file oxseodecoder.php.

oxSeoDecoder::_getObjectUrl (   $sSeoId,
  $sTable,
  $iLanguage,
  $sType 
)
protected

Searches and returns (if available) current objects seo url

Parameters
string$sSeoIdident (or last chunk of url)
string$sTablename of table to look for data
int$iLanguagecurrent language identifier
string$sTypetype of object to search in seo table
Returns
string

Definition at line 252 of file oxseodecoder.php.

oxSeoDecoder::_getParams (   $sRequest,
  $sPath 
)
protected

Extracts SEO paramteters and returns as array

Parameters
string$sRequestrequest
string$sPathpath
Returns
array $aParams extracted params

Definition at line 277 of file oxseodecoder.php.

oxSeoDecoder::_getSeoUrl (   $sObjectId,
  $iLang,
  $iShopId 
)
protected

retrieve SEO url by its object id normally used for getting the redirect url from seo history

Parameters
string$sObjectIdobject id
int$iLanglanguage to fetch
int$iShopIdshop id
Returns
string

Definition at line 142 of file oxseodecoder.php.

oxSeoDecoder::decodeUrl (   $sSeoUrl)

decodeUrl decodes given url into oxid eShop required parameters wich are returned as array

Parameters
string$sSeoUrlSEO url

public

Returns
array || false

Definition at line 52 of file oxseodecoder.php.

oxSeoDecoder::parseStdUrl (   $sUrl)

_parseStdUrl parses given url into array of params

Parameters
string$sUrlgiven url

protected

Returns
array

Definition at line 17 of file oxseodecoder.php.

oxSeoDecoder::processSeoCall (   $sRequest = null,
  $sPath = null 
)

processSeoCall handles Server information and passes it to decoder

Parameters
string$sRequestrequest
string$sPathpath

public

Returns
void

Definition at line 168 of file oxseodecoder.php.


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