Class cCategoryHelper
This class contains functions for the category helper class in CONTENIDO.
Package: Core\Frontend\Util
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/class.category.helper.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/class.category.helper.php
public static
|
|
protected
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
integer
|
|
public
integer
|
#
getTopMostCategoryId( integer $categoryId )
Return the ID of the top most category based on a given category ID. |
public
array
|
#
getCategoryPath( integer $categoryId, integer $startingLevel = 1, integer $maxDepth = 20 )
Returns an array with ordered cApiCategoryLanguage objects e.g. for a breadcrumb. |
public
array
|
#
getParentCategoryIds( integer $categoryId, integer $maxDepth = 20 )
Fetch all parent category IDs of a given category. |
public
integer
|
|
public
array
|
#
getSubCategories( integer $categoryId, integer $depth )
Return the subcategories of the given category ID. TODO: Use Generic DB instead of SQL queries |
public
boolean
|
#
hasCategoryAccess(
Checks if set auth object has access to the specific category. |
private static
|
$_instance | NULL |
#
Instance of the helper class. |
protected
integer
|
$_languageId | 0 |
#
Local stored language ID |
protected
integer
|
$_clientId | 0 |
#
Local stored client ID |
protected
array
|
$_levelCache | array() |
#
Local cache of category levels. |
protected
|
$_auth | NULL |
#
Auth object to use. |
protected
array
|
$_feGroups | array() |
#
Array with current frontend user groups. |
protected
|
$_fePermColl | NULL |
#
Object for frontend permission collection. |