OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\SeoDecoder Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Core\SeoDecoder:
+ Collaboration diagram for OxidEsales\EshopCommunity\Core\SeoDecoder:

Public Member Functions

 parseStdUrl ($sUrl)
 
 decodeUrl ($seoUrl)
 
 processSeoCall ($sRequest=null, $sPath=null)
 

Protected Member Functions

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

Private Member Functions

 extractPageNumberFromSeoUrl ($seoUrl)
 
 convertSeoPageStringToActualPageNumber ($seoPageNumber)
 

Detailed Description

Seo encoder base

Member Function Documentation

◆ _addQueryString()

OxidEsales\EshopCommunity\Core\SeoDecoder::_addQueryString (   $sUrl)
protected

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

Parameters
string$sUrlurl to append
Returns
string

◆ _decodeOldUrl()

OxidEsales\EshopCommunity\Core\SeoDecoder::_decodeOldUrl (   $seoUrl)
protected

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

Parameters
string$seoUrlSEO url

@access public

Returns
string || false

◆ _decodeSimpleUrl()

OxidEsales\EshopCommunity\Core\SeoDecoder::_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

◆ _getIdent()

OxidEsales\EshopCommunity\Core\SeoDecoder::_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

◆ _getObjectUrl()

OxidEsales\EshopCommunity\Core\SeoDecoder::_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

◆ _getParams()

OxidEsales\EshopCommunity\Core\SeoDecoder::_getParams (   $sRequest,
  $sPath 
)
protected

Extracts SEO paramteters and returns as array

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

◆ _getSeoUrl()

OxidEsales\EshopCommunity\Core\SeoDecoder::_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

◆ convertSeoPageStringToActualPageNumber()

OxidEsales\EshopCommunity\Core\SeoDecoder::convertSeoPageStringToActualPageNumber (   $seoPageNumber)
private

Converts seo url pagination number to actual page number.

Parameters
int$seoPageNumber
Returns
int

◆ decodeUrl()

OxidEsales\EshopCommunity\Core\SeoDecoder::decodeUrl (   $seoUrl)

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

Parameters
string$seoUrlSEO url

@access public

Returns
array || false

◆ extractPageNumberFromSeoUrl()

OxidEsales\EshopCommunity\Core\SeoDecoder::extractPageNumberFromSeoUrl (   $seoUrl)
private

Splits seo url into:

  • seo url without page number
  • page number
Parameters
string$seoUrl
Returns
array

◆ parseStdUrl()

OxidEsales\EshopCommunity\Core\SeoDecoder::parseStdUrl (   $sUrl)

_parseStdUrl parses given url into array of params

Parameters
string$sUrlgiven url

@access protected

Returns
array

◆ processSeoCall()

OxidEsales\EshopCommunity\Core\SeoDecoder::processSeoCall (   $sRequest = null,
  $sPath = null 
)

processSeoCall handles Server information and passes it to decoder

Parameters
string$sRequestrequest
string$sPathpath

@access public


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