contenido\classes\UrlBuilder\Contenido_UrlBuilder_Frontcontent.class.php

Show: PublicProtectedPrivateinherited
Table of Contents
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
Parent(s)
\Contenido_UrlBuilder

Properties

>VPropertyprivate\Contenido_UrlBuilder_Frontcontent $_instance
static
Self instance
>VPropertyprivatestring $_sAmp = '&'
XHTML compliant parameter composition delemiter
Default value'&'Details
Type
string
>VPropertyprotectedstring $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  
>VPropertyprotectedstring $sUrl
inherited
Inherited from: \Contenido_UrlBuilder::$$sUrl
Details
Type
string
Access
protected  
Desc
Holds final value of built URL  
Inherited_from
\Contenido_UrlBuilder::$$sUrl  

Methods

methodprivate__construct() : void

Constructor

Details
Access
private  
Author
Rudi Bieller  
methodpublicbuildUrl(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

Parameters
NameTypeDescription
$aParamsarray
$bUseAbsolutePathboolean
$aConfigarray

Is not used at the moment

Throws
ExceptionDescription
\InvalidArgumentException
\Exception
Details
Author
Rudi Bieller  
methodpublicgetHttpBasePath() : string
inherited

Return http base path, e.g.

Inherited from: \Contenido_UrlBuilder::getHttpBasePath()

http://contenido.org/

Returns
TypeDescription
string
methodpublicgetInstance() : \obj
static

Get instance of Contenido_UrlBuilder_Frontcontent

Get instance of concrete Contenido_UrlBuilder_XYZ

Returns
TypeDescription
\objContenido_UrlBuilder_Frontcontent
Details
Access
public  
Author
Rudi Bieller  
methodpublicgetUrl() : string
inherited

Return built URL

Inherited from: \Contenido_UrlBuilder::getUrl()
Returns
TypeDescription
string
Details
Access
public  
Author
Rudi Bieller  
methodpublicsetHttpBasePath( $sBasePath) : void
inherited

Set http base path, e.g.

Inherited from: \Contenido_UrlBuilder::setHttpBasePath()

http://contenido.org/

Parameters
NameTypeDescription
$sBasePath
Details
Access
public  
Author
Rudi Bieller  
Documentation was generated by phpDocumentor 2.0.0a12.