Public Member Functions | |
getBaseAddUrlParams () | |
getAddUrlParams () | |
addShopHost ($sUrl) | |
processUrl ($sUrl, $blFinalUrl=true, $aParams=null, $iLang=null) | |
processShopUrl ($sUrl, $blFinalUrl=true, $iLang=null) | |
isCurrentShopHost ($sUrl) | |
processSeoUrl ($sUrl) | |
getCurrentUrl () | |
stringToParamsArray ($sValue) | |
Protected Member Functions | |
_getHosts () | |
Protected Attributes | |
$_aAddUrlParams = null | |
$_aHosts = null | |
Private Member Functions | |
_getShopHostName () |
URL utility class
Definition at line 6 of file oxutilsurl.php.
oxUtilsUrl._getHosts | ( | ) | [protected] |
Collects and returns current shop hosts array.
Definition at line 431 of file oxutilsurl.php.
oxUtilsUrl._getShopHostName | ( | ) | [private] |
oxUtilsUrl.addShopHost | ( | $ | sUrl | ) |
Adds shop host if url does not start with it.
string | $sUrl |
Definition at line 204 of file oxutilsurl.php.
oxUtilsUrl.getAddUrlParams | ( | ) |
Returns parameters which should be appended to seo or std url.
Definition at line 40 of file oxutilsurl.php.
oxUtilsUrl.getBaseAddUrlParams | ( | ) |
Returns core parameters which must be added to each url.
Definition at line 28 of file oxutilsurl.php.
oxUtilsUrl.getCurrentUrl | ( | ) |
oxUtilsUrl.isCurrentShopHost | ( | $ | sUrl | ) |
Compares current URL to supplied string.
string | $sUrl |
Definition at line 266 of file oxutilsurl.php.
oxUtilsUrl.processSeoUrl | ( | $ | sUrl | ) |
Seo url processor: adds various needed parameters, like currency, shop id.
string | $sUrl url to process. |
Definition at line 297 of file oxutilsurl.php.
oxUtilsUrl.processShopUrl | ( | $ | sUrl, | |
$ | blFinalUrl = true , |
|||
$ | iLang = null | |||
) |
Adds additional shop url parameters, session id, language id when needed.
string | $sUrl url to process. | |
bool | $blFinalUrl should url be finalized or should it end with ? or &. | |
int | $iLang url target language. |
Definition at line 244 of file oxutilsurl.php.
oxUtilsUrl.processUrl | ( | $ | sUrl, | |
$ | blFinalUrl = true , |
|||
$ | aParams = null , |
|||
$ | iLang = null | |||
) |
Performs base url processing - adds required parameters to given url.
string | $sUrl url to process. | |
bool | $blFinalUrl should url be finalized or should it end with ? or & (default true). | |
array | $aParams additional parameters (default null). | |
int | $iLang url target language (default null). |
Definition at line 224 of file oxutilsurl.php.
oxUtilsUrl.stringToParamsArray | ( | $ | sValue | ) |
Forms parameters array out of a string. Takes & and & as delimiters. Returns associative array with parameters.
string | $sValue String |
Definition at line 409 of file oxutilsurl.php.
oxUtilsUrl.$_aAddUrlParams = null [protected] |
Definition at line 14 of file oxutilsurl.php.
oxUtilsUrl.$_aHosts = null [protected] |
Definition at line 21 of file oxutilsurl.php.