Contenido_UrlBuilder_MR
Extends abstract Contenido_UriBuilder class and implements singleton pattern.
Usage:
cInclude('classes', 'uri/class.uriBuilder.MR.php');
$url = 'front_content.php?idart=123';
$mrUriBuilder = cUriBuilderMR::getInstance();
$mrUriBuilder->buildUrl(array($url));
$newUrl = $mrUriBuilder->getUrl();
| deprecated | [2012-09-06] Use cUriBuilderMR instead of this class. |
|---|---|
| author | Murat Purc |
| package | CONTENIDO Plugins |
buildUrl(array $params, boolean $bUseAbsolutePath) : string
Index keys of $aParams will be used as "a", corresponding values as "1" in this sample.
| inherited_from | \cUriBuilderMR::buildUrl() |
|---|
arrayParameter array, provides only following parameters:
$params[0] = 'front_content.php?idart=123...'
booleanFlag to use absolute path (not used at the moment)
\cInvalidArgumentException |
|---|
stringNew build urlgetHttpBasePath() : string
http://contenido.org/
| inherited_from | \cUriBuilder::getHttpBasePath() |
|---|---|
| inherited_from | \cUriBuilderMR::getHttpBasePath() |
stringgetInstance() : \cUriBuilderMR
It is meant to be an abstract function but not declared as abstract, because PHP Strict Standards are against abstract static functions.
| deprecated | 2012-09-06 this function is not supported any longer use function located in cUriBuilderMR instead of this function |
|---|
\cBadMethodCallException |
If child class has not implemented this function |
|---|
getUrl() : string
| inherited_from | \cUriBuilder::getUrl() |
|---|---|
| inherited_from | \cUriBuilderMR::getUrl() |
stringsetHttpBasePath($sBasePath) : void
http://contenido.org/
| inherited_from | \cUriBuilder::setHttpBasePath() |
|---|---|
| inherited_from | \cUriBuilderMR::setHttpBasePath() |
__construct()
| deprecated | 2012-09-06 this function is not supported any longer use function located in cUriBuilderMR instead of this function |
|---|
_buildUrl(array $aParams) : string
| inherited_from | \cUriBuilderMR::_buildUrl() |
|---|
arrayParameter array
stringNew build pretty url_createUrlQueryPart(array $aArgs) : string
All non CONTENIDO related parameter will be excluded from composition.
| inherited_from | \cUriBuilderMR::_createUrlQueryPart() |
|---|
arrayAssoziative parameter array
stringComposed query part for the URL like
'?foo=bar¶m=value'_getArticleName(array $aPretty, array $aArgs) : string
| inherited_from | \cUriBuilderMR::_getArticleName() |
|---|
arrayPretty url array
arrayAdditional arguments
stringArticlename_getClientParameter(array $aArgs) : mixed
| inherited_from | \cUriBuilderMR::_getClientParameter() |
|---|
arrayAdditional arguments
mixedClient id, client name or null_getLanguageParameter(array $aArgs) : mixed
| inherited_from | \cUriBuilderMR::_getLanguageParameter() |
|---|
arrayAdditional arguments
mixedLanguage id, language name or null_getPath(array $aPretty) : string
| inherited_from | \cUriBuilderMR::_getPath() |
|---|
arrayPretty url array
stringPath$sHttpBasePath : string
http://contenido.org/
| inherited_from | \cUriBuilder::$$sHttpBasePath |
|---|---|
| inherited_from | \cUriBuilderMR::$$sHttpBasePath |
$sUrl : string
| inherited_from | \cUriBuilder::$$sUrl |
|---|---|
| inherited_from | \cUriBuilderMR::$$sUrl |
$_aMrCfg : array
| inherited_from | \cUriBuilderMR::$$_aMrCfg |
|---|
$_bIsXHTML : bool
| inherited_from | \cUriBuilderMR::$$_bIsXHTML |
|---|
$_bMREnabled : bool
| inherited_from | \cUriBuilderMR::$$_bMREnabled |
|---|
$_sAmp : string
| inherited_from | \cUriBuilderMR::$$_sAmp |
|---|