Property | Type | Description | |
---|---|---|---|
$_all_cats | |||
$_cat_ids | |||
$_categories | |||
$_ci |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
category_tree ( $data = [], $id = 'cat_id', $parent = 'cat_parent' ) | Category Tree | |
clear_ids ( ) | Clear ids | |
get_categories ( ) : array | Get Categories | |
get_child_ids ( $parent ) | Get Child Category Ids | |
get_ids ( ) : array | Get ids | |
make_list ( $data, $options = [] ) | Make a list of categories |
Method | Description | |
---|---|---|
_category_subtree ( $cat_id, $cat_array, $depth ) | Category Sub Tree | |
_child_subtree ( $cat_id, $cat_array, $depth ) | Generate the child ids for the parent. | |
_walk_categories ( $parent_id, $menu_data, $options, $start ) | Walk though the array |
public category_tree ( $data = [], $id = 'cat_id', $parent = 'cat_parent' ) |
public get_categories ( ) : array | ||
return | array |
public get_child_ids ( $parent ) |