

Public Member Functions | |
| getBaseAddUrlParams () | |
| getAddUrlParams () | |
| prepareUrlForNoSession ($sUrl) | |
| cleanUrl ($sUrl, $aParams=null) | |
| processUrl ($sUrl, $blFinalUrl=true, $aParams=null, $iLang=null) | |
| processSeoUrl ($sUrl) | |
| processStdUrl ($sUrl, $aParams, $iLang, $blAddLangParam) | |
| appendParamSeparator ($sUrl) | |
Static Public Member Functions | |
| static | getInstance () |
Protected Member Functions | |
| _appendUrl ($sUrl, $aAddParams) | |
Protected Attributes | |
| $_aAddUrlParams = null | |
Static Private Attributes | |
| static | $_instance = null |
URL utility class
Definition at line 6 of file oxutilsurl.php.
| oxUtilsUrl._appendUrl | ( | $ | sUrl, | |
| $ | aAddParams | |||
| ) | [protected] |
Appends url with given parameters
| atring | $sUrl url to append | |
| array | $aAddParams parameters to append |
Definition at line 125 of file oxutilsurl.php.
| oxUtilsUrl.appendParamSeparator | ( | $ | sUrl | ) |
append parameter separator - '?' if it is not in the url or & otherwise
| string | $sUrl url |
Definition at line 239 of file oxutilsurl.php.
| oxUtilsUrl.cleanUrl | ( | $ | sUrl, | |
| $ | aParams = null | |||
| ) |
Removes any or specified dynamic parameter from given url
| string | $sUrl url to clean | |
| array | $aParams parameters to remove [optional] |
Definition at line 152 of file oxutilsurl.php.
| oxUtilsUrl.getAddUrlParams | ( | ) |
Returns parameters which should be appended to seo or std url
Definition at line 60 of file oxutilsurl.php.
| oxUtilsUrl.getBaseAddUrlParams | ( | ) |
Returns core parameters which must be added to each url
Definition at line 48 of file oxutilsurl.php.
| static oxUtilsUrl.getInstance | ( | ) | [static] |
resturns a single instance of this class
Definition at line 27 of file oxutilsurl.php.
| oxUtilsUrl.prepareUrlForNoSession | ( | $ | sUrl | ) |
prepareUrlForNoSession adds extra url params making it usable without session also removes sid=xxxx&
| string | $sUrl given url |
public
Definition at line 82 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 206 of file oxutilsurl.php.
| oxUtilsUrl.processStdUrl | ( | $ | sUrl, | |
| $ | aParams, | |||
| $ | iLang, | |||
| $ | blAddLangParam | |||
| ) |
Standard/dynamic url processor: adds various needed parameters, like language id, currency, shop id This method is deprecated, see oxUtilsUrl.processUrl instead
| string | $sUrl url to process | |
| array | $aParams additional parameters add to url | |
| int | $iLang url language id | |
| bool | $blAddLangParam add language parameter or not |
Definition at line 227 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 176 of file oxutilsurl.php.
oxUtilsUrl.$_aAddUrlParams = null [protected] |
Definition at line 20 of file oxutilsurl.php.
oxUtilsUrl.$_instance = null [static, private] |
Definition at line 13 of file oxutilsurl.php.
1.6.2