Get groups for one user in DataTable format
@params client_id - the client for which the groups should be returned
@return
Data Table object
Arguments
(also
Data Table args)
client_id |
integer, required |
Get groups for one user
@params client_id - the client for which the groups should be returned
Arguments
client_id |
integer, required |
group_id |
integer |
Get only the nodes that are direct descendents of a parent node
@params parent_id = id of the parent. !!! Use 0 for root
Arguments
parent_id |
integer, required |
Add a node
If a parent_id is given, the node will be a child of that, else a root node will be inserted
Arguments
name |
string, required |
parent_id |
integer |
returns a tree
@params id - if is set, only the tree of descendents of the given id is returned
@params oneLevel - if is set, only the first level of descendents of the given id (or root) is returned
Arguments
returns a node based on the id
Arguments
Move a category left between SIBLINGS (remains on the same level)
Arguments
Move a category right between SIBLINGS (remains on the same level)
Arguments
Delete only one node and increase the level of the children by one
Arguments
Delete only one node and all its children
Arguments
Move a category tree to be descendent of another id
Consider 0 for root
Arguments
id |
integer, required |
parent_id |
integer, required |
Get all ancestors of a comma separated list of nodes
current ids are also included
@params ids - comma separated list of not null integers. Ex.: ids=110690,51650,246056
@returns an array of nodes
Arguments
Similar to getPaths, but returns only an array of unique ids of ancestors. Parameter nodes are not included
Arguments
Get a comma separated list of ancestor ids and a comma separated list of ancestor names for the given ids
@params ids - comma separated list of not null integers. Ex.: ids=110690,51650,246056
Arguments
Get a comma separated list of sibling ids and a comma separated list of sibling names for the given ids
@params ids - comma separated list of not null integers. Ex.: ids=110690,51650,246056
Arguments
dynatree format - this function is a combination of getFullPaths and getSiblings
Arguments