deprecated 2012-09-29 This class is not longer supported. Use cCategoryHelper and cFrontendHelper instead.

 Methods

Constructor.

__construct(\DB_Contenido $oDb, array $aCfg, int $iClient, int $iLang, array $aCfgClient) : void
access public
author Rudi Bieller
deprecated 2012-09-29 This class is not longer supported. Use cCategoryHelper and cFrontendHelper instead.

Parameters

$oDb

\DB_Contenido

$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 cUriBuilder for details on needed params
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 cUriBuilderConfig::getConfig(), can be overridden by setting this value

$bUseAbsolutePath

boolean

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

Exceptions

\cInvalidArgumentException

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 
Inherited
inherited_from \Contenido_FrontendNavigation_Base::$$aCategories
 

$aCfg : array
Inherited
access protected
inherited_from \Contenido_FrontendNavigation_Base::$$aCfg
 

$aCfgClient : array
Inherited
access protected
inherited_from \Contenido_FrontendNavigation_Base::$$aCfgClient
 

$bDbg : boolean
Inherited
access protected
inherited_from \Contenido_FrontendNavigation_Base::$$bDbg
 

$iClient 
Inherited
inherited_from \Contenido_FrontendNavigation_Base::$$iClient
 

$iLang 
Inherited
inherited_from \Contenido_FrontendNavigation_Base::$$iLang
 

$oCategories : \obj
Inherited
access protected
inherited_from \Contenido_FrontendNavigation_Base::$$oCategories
 

$oDb : \obj
Inherited
access protected
inherited_from \Contenido_FrontendNavigation_Base::$$oDb
 

$oDbg : \obj
Inherited
access protected
inherited_from \Contenido_FrontendNavigation_Base::$$oDbg
 

$sDbgMode : string
Inherited
access protected
inherited_from \Contenido_FrontendNavigation_Base::$$sDbgMode
 

$_aCategories : array
access private
 

$_bAsArray : boolean
access private
 

$_iCurrentLevel : int
access private
desc Used for breadcrumb loop over tree