Stud.IP  trunk Revision
StatusgroupsModel Class Reference
Collaboration diagram for StatusgroupsModel:
Collaboration graph

Static Public Member Functions

static updateGroup ($id, $name, $position, $range_id, $size, $selfassign, $selfassign_start, $selfassign_end, $makefolder, $dates=[])
 
static sortGroupMembers ($members, $sort_by='', $order='')
 

Member Function Documentation

◆ 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_idID of the group to sort
array$membersgroup members
string$sort_byoptional field to sort members by
string$orderoptional, sort by custom field 'asc' or 'desc'
Returns
array Group members, sorted by given criteria or alphabetically
Here is the caller graph for this function:

◆ updateGroup()

static updateGroup (   $id,
  $name,
  $position,
  $range_id,
  $size,
  $selfassign,
  $selfassign_start,
  $selfassign_end,
  $makefolder,
  $dates = [] 
)
static

Creates or updates a statusgroup.

Parameters
string$idID of an existing group or empty if new group
string$namegroup name
int$positionposition or null if automatic position after other groups
string$range_idID of the object this group belongs to
int$sizemax number of members or 0 if unlimited
int$selfassignmay users join this group by themselves?
int$selfassign_startgroup joining is possible starting at ...
int$makefoldercreate a document folder assigned to this group?
array$datesdates assigned to this group
Returns
Statusgruppen The saved statusgroup.
Exceptions
Exception
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: