package | Core |
---|---|
subpackage | Helper This class contains functions for the category helper class in CONTENIDO. |
getCategoryLevel(int $categoryId) : int
int
Category ID to fetch the level of.
int
category levelgetCategoryPath(int $categoryId, int $startingLevel, int $maxDepth) : array
for a breadcrumb.
int
Last category ID in list.
int
Define here, at which level the list should start. (optional, default: 1)
int
Amount of the max depth of categories. (optional, default: 20)
array
Array with cApiCategoryLanguage objectsgetClientId() : int
int
client IDgetLanguageId() : int
int
language IDgetParentCategoryIds(int $categoryId, int $maxDepth) : array
int
Base category to search on.
int
Amount of the max depth of categories. (optional, default: 20)
array
Array with parent category IDs.getSubCategories(int $categoryId, int $depth) : array
int
ID of the category to load
int
the maximum depth
array
array with subcategoriesgetTopMostCategoryId(int $categoryId) : int
int
Base category ID to search on
int
Top most category IDhasCategoryAccess(\cApiCategoryLanguage $categoryLanguage) : bool
bool
result of access checksetClientId(int $clientId) : void
int
client ID
setLanguageId(int $languageId) : void
int
language ID
__construct() : void
$_auth : \cAuth
$_clientId : int
$_feGroups : array
$_fePermColl : \cApiFrontendPermissionCollection
$_languageId : int
$_levelCache : array
$_instance : \cCategoryHelper