Methods

Constructor.

__construct(DB_Contenido $oDb, array $aCfg, int $iClient, int $iLang, array $aCfgClient) : void

access public
author Rudi Bieller

Parameters

$aCfg

array

$iClient

int

$iLang

int

$aCfgClient

Assuming we are in a Sub-Category and need to get the path to it starting at its root.

get(int $iBaseCategoryId, int $iRootLevel, boolean $bReset) : array

Here, the path starts at root node.

access public
author Rudi Bieller
todo Add possibility to return an array

Parameters

$iBaseCategoryId

int

idcat of Sub-Category

$iRootLevel

int

Level until which the path should be created

$bReset

boolean

If true, will reset internal property $this->oCategories to an empty object

Returns

array

Assuming we are in a Sub-Category and need to get the path to it starting at its root.

getAsArray(int $iBaseCategoryId, int $iRootLevel, boolean $bReset) : array

Here, the path starts at root node.

access public
author Rudi Bieller
todo Add possibility to return an array

Parameters

$iBaseCategoryId

int

idcat of Sub-Category

$iRootLevel

int

Level until which the path should be created

$bReset

boolean

If true, will reset internal property $this->oCategories to an empty object

Returns

array

Get a URL to a Navigation point.

getUrl(array $aParams, string $sStyle, array $aConfig, boolean $bUseAbsolutePath) : void
Inherited

Depending on style of URL needed, values of $aParams differ.

access public
see \appropriate
inherited_from \Contenido_FrontendNavigation_Base::getUrl()

Parameters

$aParams

array

Parameters needed to build the URL

$sStyle

string

Available styles are: front_content, custom, custom_path

$aConfig

array

As default this is Contenido_UrlBuilderConfig::getConfig(), can be overridden by setting this value

$bUseAbsolutePath

boolean

If true, will use absolute http://www.xy.com/ as "prefix"

Exceptions

\InvalidArgumentException

Set internal property for debugging on/off and choose appropriate debug object

setDebug(boolean $bDebug, string $sDebugMode) : void
Inherited

access public
author Rudi Bieller
inherited_from \Contenido_FrontendNavigation_Base::setDebug()

Parameters

$bDebug

boolean

$sDebugMode

string

Assuming we are in a Sub-Category and need to get the path to it starting at its root.

getBreadcrumb(int $iBaseCategoryId, int $iRootLevel, boolean $bReset) : array

This method goes recursively until the desired top level is reached and adds a Contenido_Category with each loop.

access protected
author Rudi Bieller

Parameters

$iBaseCategoryId

int

idcat of Sub-Category

$iRootLevel

int

Level until which the path should be created

$bReset

boolean

If true, will reset internal property $this->oCategories to an empty object

Returns

array

 Properties

 

$aCategories

$aCategories : array
Inherited

access protected
inherited_from \Contenido_FrontendNavigation_Base::$$aCategories
 

$aCfg

$aCfg : array
Inherited

access protected
inherited_from \Contenido_FrontendNavigation_Base::$$aCfg
 

$aCfgClient

$aCfgClient : array
Inherited

access protected
inherited_from \Contenido_FrontendNavigation_Base::$$aCfgClient
 

$bDbg

$bDbg : boolean
Inherited

access protected
inherited_from \Contenido_FrontendNavigation_Base::$$bDbg
 

$iClient

$iClient 
Inherited

inherited_from \Contenido_FrontendNavigation_Base::$$iClient
 

$iLang

$iLang 
Inherited

inherited_from \Contenido_FrontendNavigation_Base::$$iLang
 

$oCategories

$oCategories : \obj
Inherited

access protected
inherited_from \Contenido_FrontendNavigation_Base::$$oCategories
 

$oDb

$oDb : \obj
Inherited

access protected
inherited_from \Contenido_FrontendNavigation_Base::$$oDb
 

$oDbg

$oDbg : \obj
Inherited

access protected
inherited_from \Contenido_FrontendNavigation_Base::$$oDbg
 

$sDbgMode

$sDbgMode : string
Inherited

access protected
inherited_from \Contenido_FrontendNavigation_Base::$$sDbgMode
 

$_aCategories

$_aCategories : array

access private
 

$_bAsArray

$_bAsArray : boolean

access private
 

$_iCurrentLevel

$_iCurrentLevel : int

access private
desc Used for breadcrumb loop over tree