Skip to main content

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 NameDescriptionFirst ArgumentReturn
getCategoriesGet the categoriesList of CategoryListElement
getCategoriesByCatalogIdGet the categories of a catalogueid: the id of the catalogueList of CategoryListElement
getCategoriesTreeGet the categories treeList of Category
getCategoryByIdGet a category by its idid: the id of the categoryCategoryListElement