Contenido_Url
| deprecated | [2012-09-06] Use cUri instead of this class. |
|---|
build(mixed $param, boolean $bUseAbsolutePath, array $aConfig) : string
| inherited_from | \cUri::build() |
|---|
mixedEither url or assoziative array containing parameter: - url: front_content.php?idcat=12&lang=1 - params: array('idcat' => 12, 'lang' => 1) Required values depend on used UriBuilder, but a must have is 'lang'.
booleanFlag to create absolute Urls
arrayIf not set, UriBuilderConfig::getConfig() will be used by the UriBuilder
\cInvalidArgumentException |
if the given params do not contain the lang |
|---|
stringThe Url build by UriBuilderbuildRedirect(mixed $param, array $aConfig) : string
| inherited_from | \cUri::buildRedirect() |
|---|
mixedEither url or assoziative array containing parameter: - url: front_content.php?idcat=12&lang=1 - params: array('idcat' => 12, 'lang' => 1) Required values depend on used UriBuilder, but a must have is 'lang'.
arrayIf not set, UriBuilderConfig::getConfig() will be used by the UriBuilder
stringThe redirect Url build by UriBuildercomposeByComponents(array $aComponents) : string
| inherited_from | \cUri::composeByComponents() |
|---|
arrayAssoziative array created by parse_url()
string$sUrl The composed UrlgetInstance() : \Contenido_Url
| deprecated | 2012-09-06 this function is not supported any longer use function located in cUri instead of this function |
|---|
getUrlBuilder()
| deprecated | 2012-09-06 this function is not supported any longer use function located in cUri instead of this function |
|---|
isExternalUrl(string $sUrl) : bool
| inherited_from | \cUri::isExternalUrl() |
|---|
stringUrl to check
boolTrue if url is a external url, otherwhise falseisIdentifiableFrontContentUrl(string $sUrl) : bool
Following urls will be identified as a internal url: - "/", "/?idart=123", "/?idcat=123", ... - "front_content.php", "front_content.php?idart=123", "front_content.php?idcat=123", ... - "/front_content.php", "/front_content.php?idart=123", "/front_content.php?idcat=123", ... - The path component of an client HTML base path: e. g. "/cms/", "/cms/?idart=123", "/cms/?idcat=123" - Also possible: "/cms/front_content.php", "/cms/front_content.php?idart=123", "/cms/front_content.php?idcat=123" All of them prefixed with protocol and client host (e. g. http://host/) will also be identified as a internal Url.
Other Urls, even internal Urls like /unknown/path/to/some/page.html will not be identified as internal url event if they are real working clean URLs.
| inherited_from | \cUri::isIdentifiableFrontContentUrl() |
|---|
stringUrl to check
boolTrue if url is identifiable internal url, otherwhise falseparse(string $sUrl) : array
| inherited_from | \cUri::parse() |
|---|
stringThe Url to strip down
arrayAssoziative array created by using parse_url() having the key 'params' which
includes the parameter value pairs.__construct()
Is not callable from outside. Gets the UriBuilder configuration and creates an UriBuilder instance.
| deprecated | 2012-09-06 this function is not supported any longer use constructor located in cUri instead of this function |
|---|
$_oUriBuilder : \Contenido_UriBuilder
| inherited_from | \cUri::$$_oUriBuilder |
|---|
$_sUriBuilderName : string
| inherited_from | \cUri::$$_sUriBuilderName |
|---|