This class contains functions for the frontend helper class in CONTENIDO.

package Core
subpackage Helper

 Methods

Returns the instance of this class.

getInstance() : \cFrontendHelper
Static

Helper function to render the navigation.

renderNavigation(int $baseCategoryId, int $depth, int $currentCategoryId, \cTemplate $tpl) : void

Parameters

$baseCategoryId

int

root category ID

$depth

int

maximum depth

$currentCategoryId

int

the current category ID

$tpl

\cTemplate

template reference

Helper function to render the sitemap.

renderSitemap(int $baseCategoryId, int $depth, \cTemplate $tpl) : void

Parameters

$baseCategoryId

int

root category ID

$depth

int

maximum depth

$tpl

\cTemplate

template reference

Constructor of the class.

__construct() : void

Fetches the requested category tree.

_fetchCategoryTree(int $baseCategoryId, int $depth, int $currentCategoryId) : array

Parameters

$baseCategoryId

int

root category ID

$depth

int

maximum depth

$currentCategoryId

int

the current category ID

Returns

arraycategory tree

 Properties

 

$_instance : \cFrontendHelper