Methods

Builds a URL in index-a-1.html style.

buildUrl(array $aParams, boolean $bUseAbsolutePath, array $aConfig) : void

Index keys of $aParams will be used as "a", corresponding values as "1" in this sample. For creating the location string $aParams needs to have keys idcat, level, lang and at least one custom key. If level is not set, level 0 will be used as default.

author Rudi Bieller
todo Somehow get around using prCreateURLNameLocationString()

Parameters

$aParams

array

Required keys are: idcat, level, lang and at least one custom key.

$bUseAbsolutePath

boolean

$aConfig

array

If not set, will use UrlBuilderConfig::getConfig()

Exceptions

\InvalidArgumentException
\Exception

Return http base path, e.g. http://contenido.org/

getHttpBasePath() : string
Inherited

inherited_from \Contenido_UrlBuilder::getHttpBasePath()

Returns

string

Get instance of Contenido_UrlBuilder_Frontcontent

getInstance() : \obj

access public
author Rudi Bieller

Returns

\objContenido_UrlBuilder_Frontcontent

Return built URL

getUrl() : string
Inherited

access public
author Rudi Bieller
inherited_from \Contenido_UrlBuilder::getUrl()

Returns

string

Set http base path, e.g. http://contenido.org/

setHttpBasePath($sBasePath) : void
Inherited

access public
author Rudi Bieller
inherited_from \Contenido_UrlBuilder::setHttpBasePath()

Parameters

$sBasePath

Constructor

__construct() : void

access private
author Rudi Bieller

 Properties

 

$sHttpBasePath

$sHttpBasePath : string
Inherited

access protected
desc Holds URL that is used as base for an absolute path, e.g. http://contenido.org/
inherited_from \Contenido_UrlBuilder::$$sHttpBasePath
 

$sUrl

$sUrl : string
Inherited

access protected
desc Holds final value of built URL
inherited_from \Contenido_UrlBuilder::$$sUrl
 

$_instance

$_instance 

 

$aConfig

$aConfig