contenido\classes\UrlBuilder\Contenido_UrlBuilder_Frontcontent.class.php
Project:
Contenido Content Management System
Description: Implementation of IContenido_Frontend_Navigation_UrlBuilder to build front_content.php URL
Requirements:
- Author
- Rudi Bieller
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- {@internal created 2008-02-19 modified 2008-09-09 Fix of parameter checking in method buildUrl() modified 2008-09-29, Murat Purc, fix parameter check and third argument for buildUrl() modified 2008-12-26, Murat Purc, added handling of additional parameter to buildUrl() modified 2009-01-19 Rudi Bieller Bugfix in buildUrl() for idart (had idcat as param name...) @todo: add switch for & vs. & $Id: Contenido_UrlBuilder_Frontcontent.class.php 976 2009-01-19 14:10:23Z rudi.bieller $: }}
- Package
- Contenido Backend classes
- Version
- 1.0.3
\Contenido_UrlBuilder_Frontcontent
Package: Default


Parameters
Throws
Details
Returns
Details
- Parent(s)
- \Contenido_UrlBuilder
Properties


string $_sAmp = '&'
XHTML compliant parameter composition delemiter
Default value
'&'
Details- Type
- string


string $sHttpBasePath
inheritedInherited from:
\Contenido_UrlBuilder::$$sHttpBasePath
Details
- Type
- 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


string $sUrl
inheritedInherited from:
\Contenido_UrlBuilder::$$sUrl
Details
- Type
- string
- Access
- protected
- Desc
- Holds final value of built URL
- Inherited_from
- \Contenido_UrlBuilder::$$sUrl
Methods


buildUrl(array $aParams, boolean $bUseAbsolutePath = false, array $aConfig = array()) : void
Builds a URL in front_content.php style.
Depending on which array keys of $aParams are set, the URL is built differently. Valid array keys are: idcat, idart and idcatart. Additional array keys will also be added to the generated url. Internally, the method first tries to create URLs in this order: front_content.php?idcat=1&idart=1 front_content.php?idcat=1 front_content.php?idart=1 front_content.php?idcatart=1
Name | Type | Description |
---|---|---|
$aParams | array | |
$bUseAbsolutePath | boolean | |
$aConfig | array | Is not used at the moment |
Exception | Description |
---|---|
\InvalidArgumentException | |
\Exception |
- Author
- Rudi Bieller


getInstance() : \obj
static
Get instance of Contenido_UrlBuilder_Frontcontent
Get instance of concrete Contenido_UrlBuilder_XYZ
Type | Description |
---|---|
\obj | Contenido_UrlBuilder_Frontcontent |
- Access
- public
- Author
- Rudi Bieller