Class cUriBuilderMR
Class to build frontend urls for advandced mod rewrite plugin. 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();
- cUriBuilder
- cUriBuilderMR
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc murat@purc.de
Todo: Add handling of absolute paths, standardize handling of fragments
Located at classes/uri/class.uribuilder.mr.php
private
|
|
public static
|
|
public
string
|
|
private
string
|
|
public static
unknown
|
#
getMultiClientRootDir( string $configuredRootDir )
Returns the defined rootdir. Allows for root dir being alternativly defined as path of setting client/%frontend_path%. |
private
string
|
#
_createUrlQueryPart( array $aArgs )
Loops thru passed parameter array and creates the query part of the URL. All non CONTENIDO related parameter will be excluded from composition. |
private
mixed
|
|
private
mixed
|
|
private
string
|
|
private
string
|
getHttpBasePath(),
getUrl(),
setHttpBasePath()
|
private static
|
$_instance
Self instance |
|
private static
string
|
$_cachedRootDir
Cached rootdir. The rootdir can differ from the configured one if an alternate frontendpath is configured as client setting. In order to determine the current rootdir only once this is cached as static class member. |
|
private
string
|
$_sAmp
Ampersant used for composing several parameter value pairs |
#
'&'
|
private
boolean
|
$_bIsXHTML
Is XHTML output? |
#
false
|
private
boolean
|
$_bMREnabled
Is mod rewrite enabled? |
#
false
|
private
array
|
$_aMrCfg
Mod Rewrite configuration |
#
NULL
|
$sHttpBasePath,
$sUrl
|