Methods

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

buildUrl(array $aParams, bool $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.

todo Somehow get around using prCreateURLNameLocationString()

Parameters

$aParams

array

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

$bUseAbsolutePath

bool

$aConfig

array

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

Exceptions

\cInvalidArgumentException

Return http base path, e.g.

getHttpBasePath() : string
Inherited

http://contenido.org/

inherited_from \cUriBuilder::getHttpBasePath()

Returns

string

Get instance of self

getInstance() : \obj
Static

It is meant to be an abstract function but not declared as abstract, because PHP Strict Standards are against abstract static functions.

Exceptions

\cBadMethodCallException If child class has not implemented this function

Returns

\objcUriBuilderFrontcontent

Return built URL

getUrl() : string
Inherited
inherited_from \cUriBuilder::getUrl()

Returns

string

Set http base path, e.g.

setHttpBasePath($sBasePath) : void
Inherited

http://contenido.org/

inherited_from \cUriBuilder::setHttpBasePath()

Parameters

$sBasePath

Constructor

__construct() : void

 Properties

 

$sHttpBasePath : string
Inherited

http://contenido.org/

inherited_from \cUriBuilder::$$sHttpBasePath
 

$sUrl : string
Inherited
inherited_from \cUriBuilder::$$sUrl
 

$_instance : \cUriBuilderCustomPath
 

$aConfig : array