CategoriesManager
This class allows you to easily integrate a complete system of categories in its script. It needs to have its first instantiation of a parameter child object CategoriesCache and as the second parameter to have a CategoriesItemsParameters object.
public
|
#
__construct(
|
public
|
|
public
|
|
public
|
#
move_into_another(
Moves a category and items into another category. You can specify its future position in its future parent category. |
public
|
#
move_items_into_another(
Moves items into another category. |
public
|
#
update_position(
Update category and items position. |
public
|
|
public
|
#
get_children( integer $id_category,
Category[string] the children Categories map (id => category) for category id |
public
|
#
get_parents( integer $id_category, boolean $add_this = false )
Category[string] the parents Categories map (id => category) for category id |
public
mixed[]
|
#
get_heritated_authorizations( integer $id_category, integer $bit, integer $mode )
Computes the global authorization level of the whole parent categories. The result corresponds to all the category's parents merged. |
public
|
#
get_select_categories_form_field( $id, $label, $value,
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
string |
STANDARD_CATEGORY_CLASS
|
#
'Category'
|
string |
RICH_CATEGORY_CLASS
|
#
'RichCategory'
|