|
| static | updateGroup ($id, $name, $position, $range_id, $size, $selfassign, $selfassign_start, $selfassign_end, $makefolder, $dates=[]) |
| |
| static | sortGroupMembers ($members, $sort_by='', $order='') |
| |
◆ sortGroupMembers()
| static sortGroupMembers |
( |
|
$members, |
|
|
|
$sort_by = '', |
|
|
|
$order = '' |
|
) |
| |
|
static |
Sorts the members of the given group alphabetically or by the given sort criteria.
- Parameters
-
| string | $group_id | ID of the group to sort |
| array | $members | group members |
| string | $sort_by | optional field to sort members by |
| string | $order | optional, sort by custom field 'asc' or 'desc' |
- Returns
- array Group members, sorted by given criteria or alphabetically
◆ updateGroup()
| static updateGroup |
( |
|
$id, |
|
|
|
$name, |
|
|
|
$position, |
|
|
|
$range_id, |
|
|
|
$size, |
|
|
|
$selfassign, |
|
|
|
$selfassign_start, |
|
|
|
$selfassign_end, |
|
|
|
$makefolder, |
|
|
|
$dates = [] |
|
) |
| |
|
static |
Creates or updates a statusgroup.
- Parameters
-
| string | $id | ID of an existing group or empty if new group |
| string | $name | group name |
| int | $position | position or null if automatic position after other groups |
| string | $range_id | ID of the object this group belongs to |
| int | $size | max number of members or 0 if unlimited |
| int | $selfassign | may users join this group by themselves? |
| int | $selfassign_start | group joining is possible starting at ... |
| int | $makefolder | create a document folder assigned to this group? |
| array | $dates | dates assigned to this group |
- Returns
- Statusgruppen The saved statusgroup.
- Exceptions
-
The documentation for this class was generated from the following file: