structure functions
- get_path - Get path to root
- get_first_type - get first type
- get_parents - get parent cids
- get_childs - get child cids
- get_root - get root cid
get_path($cid,$table,$reverse=false)
return array of cids to root
get_first_type($table,$data)
find first type cid
$d = get_path($data['cid'],'articles_categories',true); $type = get_first_type('articles_types',$d);
get_parents($DB,$cid,$table)
Gets all parent categories (recursive) up to the root.
get_childs($DB,$cid,$table)
Gets all subcategories (recursive) according to parent cid.
get_root($DB,$cid,$table)
Gets pid of root category according to any cid.







