Categories
getCategories
Get the categories
Return List of CategoryListElement
local categories = getCategories()
getCategoriesByCatalogId
Get the categories of a catalogue
Arguments
- id:
int
the id of the catalogue
Return List of CategoryListElement
local categories = getCategoriesByCatalogId(catalogueId)
getCategoriesTree
Get the categories tree
Return List of Category
local categoriesTree = getCategoriesTree()
getCategoryById
Get a category by its id
Arguments
- id:
int
the id of the category
Return CategoryListElement
local category = getCategoryById(categoryId)
Table
Function Name | Description | First Argument | Return |
---|---|---|---|
getCategories | Get the categories | List of CategoryListElement | |
getCategoriesByCatalogId | Get the categories of a catalogue | id: the id of the catalogue | List of CategoryListElement |
getCategoriesTree | Get the categories tree | List of Category | |
getCategoryById | Get a category by its id | id: the id of the category | CategoryListElement |