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 |
|---|
arrayParameter array, provides only following parameters: $params[0] = 'front_content.php?idart=123...'
booleanFlag to use absolute path (not used at the moment)
\InvalidArgumentException |
|---|
stringNew build urlgetHttpBasePath() : string
| inherited_from | \Contenido_UrlBuilder::getHttpBasePath() |
|---|
stringgetUrl() : string
setHttpBasePath($sBasePath) : void
| access | public |
|---|---|
| author | Rudi Bieller |
| inherited_from | \Contenido_UrlBuilder::setHttpBasePath() |
__construct()
_buildUrl(array $aParams) : string
arrayParameter array
stringNew build pretty url_createUrlQueryPart(array $aArgs) : string
All non Contenido related parameter will be excluded from composition.
arrayAssoziative parameter array
stringComposed query part for the URL like '?foo=bar¶m=value'_getArticleName(array $aPretty, array $aArgs) : string
arrayPretty url array
arrayAdditional arguments
stringArticlename_getClientParameter(array $aArgs) : mixed
arrayAdditional arguments
mixedClient id, client name or null_getLanguageParameter(array $aArgs) : mixed
arrayAdditional arguments
mixedLanguage id, language name or null_getPath(array $aPretty) : string
arrayPretty url array
stringPath$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