![]() |
IP.Board
3.3.0
|
Public Member Functions | |
| __construct (ipsRegistry $registry) | |
| _getCategoriesWithDepth ($catid, $_return, $depth_guide) | |
| calcCategory ($root_id, $category=array(), $done_pass=0) | |
| fetchTopParentID ($id) | |
| fixCategoryFurl ($cat, $categories) | |
| getBreadcrumbs ($root_id, $url='') | |
| getCategories ($database=0) | |
| getCategoriesWithDepth () | |
| getCategory ($id) | |
| getCategoryUrl ($baseUrl, $id, $more=false) | |
| getChildren ($root_id, $ids=array()) | |
| getParents ($root_id, $ids=array()) | |
| getSelectMenu ($omit=array()) | |
| init ($database) | |
| recache ($category=0) | |
| resetRootCategory ($category) | |
Data Fields | |
| $catcache = array() | |
| $categories = array() | |
| $database = array() | |
| $depth_guide = "--" | |
| $hasCategories = false | |
| $hide = true | |
Protected Member Functions | |
| _getSelectMenu ($root_id, $jump_string="", $depth_guide="", $omit=array()) | |
Protected Attributes | |
| $cache | |
| $caches | |
| $DB | |
| $lang | |
| $member | |
| $memberData | |
| $registry | |
| $request | |
| $settings | |
| __construct | ( | ipsRegistry $ | registry | ) |
| _getCategoriesWithDepth | ( | $ | catid, |
| $ | _return, | ||
| $ | depth_guide | ||
| ) |
Get categories in a single-level array with depth information.
public
| _getSelectMenu | ( | $ | root_id, |
| $ | jump_string = "", |
||
| $ | depth_guide = "", |
||
| $ | omit = array() |
||
| ) | [protected] |
Internal helper function for getSelectMenu
protected
| integer | $root_id | |
| string | $jump_string | |
| string | $depth_guide | |
| array | $omit |
| calcCategory | ( | $ | root_id, |
| $ | category = array(), |
||
| $ | done_pass = 0 |
||
| ) |
Gets cumulative record count
public
| integer | $root_id | |
| array | $category | |
| bool | $done_pass |
| fetchTopParentID | ( | $ | id | ) |
Locate the top parent id of any category
public
| int | Category ID |
| fixCategoryFurl | ( | $ | cat, |
| $ | categories | ||
| ) |
Automatically sets a category furl name
public
| array | Category data |
| array | All categories |
| getBreadcrumbs | ( | $ | root_id, |
| $ | url = '' |
||
| ) |
Create breadcrumbs
public
| integer | $root_id | |
| string | $url |
| getCategories | ( | $ | database = 0 | ) |
Returns a list of all categories
public
| int | Database ID |
Get categories in a single-level array with depth information.
public
| getCategory | ( | $ | id | ) |
Fetch category data
public
| int | Category ID |
| getCategoryUrl | ( | $ | baseUrl, |
| $ | id, | ||
| $ | more = false |
||
| ) |
Get category url (handles furls)
public
| string | Base URL |
| int | Category id |
| bool | Prepare URL to add more params |
| getChildren | ( | $ | root_id, |
| $ | ids = array() |
||
| ) |
Get category children
public
| integer | $root_id | |
| array | $ids |
| getParents | ( | $ | root_id, |
| $ | ids = array() |
||
| ) |
Get category parents
public
| integer | $root_id | |
| array | $ids |
| getSelectMenu | ( | $ | omit = array() | ) |
Get a jump menu
public
| array | Category ids to omit |
| init | ( | $ | database | ) |
Grab all categories and format into a proper array
public
| array | Database info |
| recache | ( | $ | category = 0 | ) |
Recache a category
public
| int | Category ID |
| resetRootCategory | ( | $ | category | ) |
Reset the "root" to be a specific category
public
| int | Category id |