Class

CategoriesManager

Package: content Author: Kévin MASSY Desc: 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. Located at content/category/CategoriesManager.class.php
Methods summary
public
# __construct( CategoriesCache $categories_cache, CategoriesItemsParameters $categories_items_parameters )
public
# add( Category $category )
public
# update( Category $category )
public
# move_into_another( Category $category, integer $id_parent, integer $position = 0 )
public
# move_items_into_another( Category $category, integer $id_parent )
public
# update_position( Category $category, integer $id_parent, integer $position )
public
# delete( integer $id )
public
# get_children( integer $id_category, SearchCategoryChildrensOptions $search_category_children_options, mixed $add_this = false )
public
# get_parents( integer $id_category, boolean $add_this = false )
public mixed[]
# get_heritated_authorizations( integer $id_category, integer $bit, integer $mode )
public
# get_select_categories_form_field( mixed $id, mixed $label, mixed $value, SearchCategoryChildrensOptions $search_category_children_options, array $field_options = array() )
public FeedsCategoriesModule
public
public CategoriesCache
public string
# get_module_id( )
public CategoriesItemsParameters
Constants summary
string STANDARD_CATEGORY_CLASS 'Category'
#
string RICH_CATEGORY_CLASS 'RichCategory'
#