| package | Core |
|---|---|
| subpackage | Helper This class contains functions for the category helper class in CONTENIDO. |
getCategoryLevel(int $categoryId) : int
intCategory ID to fetch the level of.
intcategory levelgetCategoryPath(int $categoryId, int $startingLevel, int $maxDepth) : array
for a breadcrumb.
intLast category ID in list.
intDefine here, at which level the list should start. (optional, default: 1)
intAmount of the max depth of categories. (optional, default: 20)
arrayArray with cApiCategoryLanguage objectsgetClientId() : int
intclient IDgetLanguageId() : int
intlanguage IDgetParentCategoryIds(int $categoryId, int $maxDepth) : array
intBase category to search on.
intAmount of the max depth of categories. (optional, default: 20)
arrayArray with parent category IDs.getSubCategories(int $categoryId, int $depth) : array
intID of the category to load
intthe maximum depth
arrayarray with subcategoriesgetTopMostCategoryId(int $categoryId) : int
intBase category ID to search on
intTop most category IDhasCategoryAccess(\cApiCategoryLanguage $categoryLanguage) : bool
boolresult of access checksetClientId(int $clientId) : void
intclient ID
setLanguageId(int $languageId) : void
intlanguage ID
__construct() : void
$_auth : \cAuth
$_clientId : int
$_feGroups : array
$_fePermColl : \cApiFrontendPermissionCollection
$_languageId : int
$_levelCache : array
$_instance : \cCategoryHelper