CategoryService CategoryService(
)
|
|
Instantiates a new CategoryService.
This is used for receiving any kind of Category Object.
int countLinksForCategory(
$categoryid
)
|
|
Count the lins for a Category
Parameters:
API Tags:
| Return: | the amount of linked items for the Category |
array getAllItemsForCategory(
$categoryid
)
|
|
THE IMPLEMENTATION MAY CHANGE, BE CAREFUL WHEN USING! Fetches all Items that are linked to a Category, Itemtype independ.
Returns an Result array.
The Array has the usable Indices:
Parameters:
API Tags:
| Return: | see list above for array indices |
Fetch the Category Object with the given ID.
Parameters:
|
int |
$id: |
id the Category ID |
API Tags:
Returns a new CategoryTreeWalker to get information about Categorys, in their tree-order
API Tags:
| Return: | the CategoryTreeWalker |
Get a list of all Categorys that are linked to the given Item.
Parameters:
API Tags:
| Return: | list of Categorys |
Returns an Enumeration above all Items (for the given Itemtype), that are linked to a Category.
Parameters:
|
|
$itemtype_id: |
|
|
|
$categoryid: |
|
API Tags:
Gets the Category Top Level Item.
API Tags:
| Return: | the Top Level Category |
boolean isItemLinkedToCategory(
$itemtype_id,
$item_id,
$category_id
)
|
|
Returns whether an Item id lnked to a known Category.
Parameters:
|
|
$itemtype_id: |
|
|
|
$item_id: |
|
|
|
$category_id: |
|
API Tags:
| Return: | if the item is linked or not |