Categories
Categories class handles everything for the categories.
Located in /includes/classes/kernel/Categories.php (line 21)
addCategory (line 326)
Add Category
- array $data: An array of data.
breadcrumb (line 271)
Breadcrumb
Generates a breadcrumb nav for categories
- int $node: The current category id
- int $lev: The current level
breadcrumb_title (line 305)
Breadcrumb
Generates a breadcrumb for a page title
- int $node: The current category id
- int $lev: The current level
checkSlug (line 208)
Check Slug
Checks other categories for the same slug.
- string $slug: The slug name
- $id
deleteCategory (line 400)
Delete Category
- int $id: The id of the category to delete.
editCategory (line 366)
Edit Category
- array $data: An array of data.
formatSlug (line 241)
Format Slug
Formats a category slug.
- string $slug: The slug name
- $i
- $id
getAdminCatTree (line 439)
Get Administration Category Tree
- string $prefix
- int $parent: The parend category id
- $listing_total
getAllCategories (line 613)
Get all data for all categories
getAllParentCategories (line 523)
Get All Parent Categories
getCategoryById (line 565)
Get Category
Gets a single category by its ID. Then assigns it to the template class.
- int $id: The listing id to get.
getCategoryBySlug (line 178)
Get Category by Slug
Gets the category based off it's slug
- string $slug: return array
getCategoryNameById (line 597)
Get a category name by its id.
- int $id: The category id.
getCatListingsByCatID (line 422)
Get Listings By Category Id
- int $id: The category id
getCatTree (line 466)
Get Category Tree
- string $prefix
- int $parent: The parend category id
getSubCategories (line 29)
Get Sub Categories
- int $parent: The parent category id.
getSubCategoriesList (line 86)
Get Sub Categories List
- int $parent: The parent category id.
- int $limit: The number to limit. Default is 3.
get_count (line 160)
Get Count Count the total listings in an array of categories.
- array $arr_ids
get_ids (line 124)
Get Ids
Recurrsively get the child category ids from a parent.
- arrary $arr_ids: An array of ids.
removeCatImage (line 659)
Remove Category Image
- int $id: The category id
required_cats (line 637)
Required Categories
selected_cat_tree (line 490)
Selected Category Tree
- string $prefix
- int $parent: The parend category id
- int $modify: modify The field id

