buildUrl()
getHttpBasePath()
getInstance()
getUrl()
setHttpBasePath()
__construct()
_buildUrl()
_createUrlQueryPart()
_getArticleName()
_getClientParameter()
_getLanguageParameter()
_getPath()
$sHttpBasePath
$sUrl
$_aMrCfg
$_bIsXHTML
$_bMREnabled
$_instance
$_sAmp
Class to build frontend urls for advandced mod rewrite plugin.
Extends abstract Contenido_UrlBuilder class and implements singleton pattern.
Usage:
cInclude('classes', 'UrlBuilder/Contenido_UrlBuilder_MR.class.php');
$url = 'front_content.php?idart=123';
$mrUrlBuilder = Contenido_UrlBuilder_MR::getInstance();
$mrUrlBuilder->buildUrl(array($url));
$newUrl = $mrUrlBuilder->getUrl();
todo | Add handling of absolute paths, standardize handling of fragments |
---|---|
author | Murat Purc |
package | Contenido Backend plugins |
subpackage | ModRewrite |
buildUrl(array $params, boolean $bUseAbsolutePath) : string
Index keys of $aParams will be used as "a", corresponding values as "1" in this sample.
author | Rudi Bieller |
---|
array
Parameter array, provides only following parameters: $params[0] = 'front_content.php?idart=123...'
boolean
Flag to use absolute path (not used at the moment)
\InvalidArgumentException |
---|
string
New build urlgetHttpBasePath() : string
inherited_from | \Contenido_UrlBuilder::getHttpBasePath() |
---|
string
getUrl() : string
setHttpBasePath($sBasePath) : void
access | public |
---|---|
author | Rudi Bieller |
inherited_from | \Contenido_UrlBuilder::setHttpBasePath() |
__construct()
_buildUrl(array $aParams) : string
array
Parameter array
string
New build pretty url_createUrlQueryPart(array $aArgs) : string
All non Contenido related parameter will be excluded from composition.
array
Assoziative parameter array
string
Composed query part for the URL like '?foo=bar¶m=value'_getArticleName(array $aPretty, array $aArgs) : string
array
Pretty url array
array
Additional arguments
string
Articlename_getClientParameter(array $aArgs) : mixed
array
Additional arguments
mixed
Client id, client name or null_getLanguageParameter(array $aArgs) : mixed
array
Additional arguments
mixed
Language id, language name or null_getPath(array $aPretty) : string
array
Pretty url array
string
Path$sHttpBasePath : string
access | protected |
---|---|
desc | Holds URL that is used as base for an absolute path, e.g. http://contenido.org/ |
inherited_from | \Contenido_UrlBuilder::$$sHttpBasePath |
$sUrl : string
access | protected |
---|---|
desc | Holds final value of built URL |
inherited_from | \Contenido_UrlBuilder::$$sUrl |
$_aMrCfg : array
$_bIsXHTML : bool
$_bMREnabled : bool
$_sAmp : string