Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
statusgruppe.inc.php File Reference

Namespaces

namespace  studip_core

Functions

 MakeUniqueStatusgruppeID ()
 AddNewStatusgruppe ($new_statusgruppe_name, $range_id, $new_statusgruppe_size, $new_selfassign=0, $new_doc_folder=false, $statusgruppe_id=false)
 CheckSelfAssign ($statusgruppe_id)
 CheckSelfAssignAll ($seminar_id)
 CheckAssignRights ($statusgruppe_id, $user_id, $seminar_id)
 SetSelfAssign ($statusgruppe_id, $flag="0")
 SetSelfAssignAll ($seminar_id, $flag=false)
 SetSelfAssignExclusive ($seminar_id, $flag=false)
 GetAllSelected ($range_id, $level=0)
 EditStatusgruppe ($new_statusgruppe_name, $new_statusgruppe_size, $edit_id, $new_selfassign="0", $new_doc_folder=false)
 InsertPersonStatusgruppe ($user_id, $statusgruppe_id)
 MakeDatafieldsDefault ($user_id, $statusgruppe_id, $default= 'default_value')
 getStatusgruppenIDS ($range_id)
 getAllStatusgruppenIDS ($range_id)
 RemovePersonStatusgruppe ($username, $statusgruppe_id)
 RemovePersonFromAllStatusgruppen ($username)
 RemovePersonStatusgruppeComplete ($username, $range_id)
 DeleteStatusgruppe ($statusgruppe_id)
 MovePersonPosition ($username, $statusgruppe_id, $direction)
 SortPersonInAfter ($user_id, $after, $role_id)
 DeleteAllStatusgruppen ($range_id)
 moveStatusgruppe ($role_id, $up_down= 'up')
 SortStatusgruppe ($insert_after, $insert_id)
 SubSortStatusgruppe ($insert_vather, $insert_daughter)
 resortStatusgruppeByRangeId ($range_id)
 SwapStatusgruppe ($statusgruppe_id)
 CheckStatusgruppe ($range_id, $name)
 CheckUserStatusgruppe ($group_id, $object_id)
 GetRangeOfStatusgruppe ($statusgruppe_id)
 getOptionsOfStGroups ($userID)
 setOptionsOfStGroup ($groupID, $userID, $visible, $inherit='')
 CountMembersStatusgruppen ($range_id)
 CountMembersPerStatusgruppe ($group_id)
 GetStatusgruppenForUser ($user_id, $group_list)
 GetAllStatusgruppen ($parent, $check_user=null, $exclude=false)
 GetStatusgruppeName ($group_id)
 GetStatusgruppeLimit ($group_id)
 CheckStatusgruppeFolder ($group_id)
 CheckStatusgruppeMultipleAssigns ($range_id)
 isVatherDaughterRelation ($vather, $daughter)
 getAllChildIDs ($range_id)
 display_roles_recursive ($roles, $level=0, $pred= '')
 GetRoleNames ($roles, $level=0, $pred= '', $all=false)
 get_role_data_recursive ($roles, $user_id, &$default_entries, $filter=null, $level=0, $pred= '')
 getPersonsForRole ($role_id)
 sortStatusgruppeByName ($statusgruppe_id)
 getPersons ($range_id, $type=false)
 getSearchResults ($search_exp, $range_id, $type= 'inst')
 checkExternDefaultForUser ($user_id)

Function Documentation

AddNewStatusgruppe (   $new_statusgruppe_name,
  $range_id,
  $new_statusgruppe_size,
  $new_selfassign = 0,
  $new_doc_folder = false,
  $statusgruppe_id = false 
)

Here is the call graph for this function:

CheckAssignRights (   $statusgruppe_id,
  $user_id,
  $seminar_id 
)

Here is the call graph for this function:

Here is the caller graph for this function:

checkExternDefaultForUser (   $user_id)

Here is the call graph for this function:

Here is the caller graph for this function:

CheckSelfAssign (   $statusgruppe_id)

Here is the caller graph for this function:

CheckSelfAssignAll (   $seminar_id)

Here is the caller graph for this function:

CheckStatusgruppe (   $range_id,
  $name 
)
CheckStatusgruppeFolder (   $group_id)

Here is the caller graph for this function:

CheckStatusgruppeMultipleAssigns (   $range_id)
CheckUserStatusgruppe (   $group_id,
  $object_id 
)

Here is the caller graph for this function:

CountMembersPerStatusgruppe (   $group_id)

Here is the caller graph for this function:

CountMembersStatusgruppen (   $range_id)

Returns the number of persons who are grouped in Statusgruppen for one range.

Persons who are members in more than one Statusgruppe will be count only once

public

Parameters
string$range_idThe ID of a range with Statusgruppen
Returns
int The number of members

Here is the call graph for this function:

DeleteAllStatusgruppen (   $range_id)

Here is the call graph for this function:

Here is the caller graph for this function:

DeleteStatusgruppe (   $statusgruppe_id)

Here is the call graph for this function:

Here is the caller graph for this function:

display_roles_recursive (   $roles,
  $level = 0,
  $pred = '' 
)

Here is the call graph for this function:

EditStatusgruppe (   $new_statusgruppe_name,
  $new_statusgruppe_size,
  $edit_id,
  $new_selfassign = "0",
  $new_doc_folder = false 
)

Here is the call graph for this function:

get_role_data_recursive (   $roles,
  $user_id,
$default_entries,
  $filter = null,
  $level = 0,
  $pred = '' 
)

Here is the call graph for this function:

getAllChildIDs (   $range_id)

Here is the caller graph for this function:

GetAllSelected (   $range_id,
  $level = 0 
)

Here is the caller graph for this function:

GetAllStatusgruppen (   $parent,
  $check_user = null,
  $exclude = false 
)

Returns all statusgruppen for the given range.

If there is no statusgruppe for the given range, it returns FALSE.

public

Parameters
string$range_id
string$user_id
Returns
array (structure statusgruppe_id => name)

Here is the call graph for this function:

Here is the caller graph for this function:

getAllStatusgruppenIDS (   $range_id)

Here is the call graph for this function:

Here is the caller graph for this function:

getOptionsOfStGroups (   $userID)

get all statusgruppen for one user and one range

get all statusgruppen for one user and one range

public

Parameters
string$range_id
string$user_id
Returns
array (structure statusgruppe_id => array(name, inherit, visible))
getPersons (   $range_id,
  $type = false 
)

Here is the call graph for this function:

getPersonsForRole (   $role_id)

Here is the caller graph for this function:

GetRangeOfStatusgruppe (   $statusgruppe_id)
GetRoleNames (   $roles,
  $level = 0,
  $pred = '',
  $all = false 
)

Here is the caller graph for this function:

getSearchResults (   $search_exp,
  $range_id,
  $type = 'inst' 
)
GetStatusgruppeLimit (   $group_id)

Here is the caller graph for this function:

GetStatusgruppeName (   $group_id)

Here is the caller graph for this function:

GetStatusgruppenForUser (   $user_id,
  $group_list 
)

Returns all statusgruppen for the given range.

If there is no statusgruppe for the given range, it returns FALSE.

public

Parameters
string$range_id
string$user_id(optional)
Returns
array (tree)

Here is the caller graph for this function:

getStatusgruppenIDS (   $range_id)

Here is the caller graph for this function:

InsertPersonStatusgruppe (   $user_id,
  $statusgruppe_id 
)

Here is the call graph for this function:

Here is the caller graph for this function:

isVatherDaughterRelation (   $vather,
  $daughter 
)

Here is the call graph for this function:

Here is the caller graph for this function:

MakeDatafieldsDefault (   $user_id,
  $statusgruppe_id,
  $default = 'default_value' 
)

Here is the call graph for this function:

Here is the caller graph for this function:

MakeUniqueStatusgruppeID ( )

built a not existing ID

private

Returns
string

Here is the caller graph for this function:

MovePersonPosition (   $username,
  $statusgruppe_id,
  $direction 
)

Here is the call graph for this function:

moveStatusgruppe (   $role_id,
  $up_down = 'up' 
)
RemovePersonFromAllStatusgruppen (   $username)

Here is the call graph for this function:

Here is the caller graph for this function:

RemovePersonStatusgruppe (   $username,
  $statusgruppe_id 
)

Here is the call graph for this function:

Here is the caller graph for this function:

RemovePersonStatusgruppeComplete (   $username,
  $range_id 
)

Here is the call graph for this function:

Here is the caller graph for this function:

resortStatusgruppeByRangeId (   $range_id)

Here is the caller graph for this function:

setOptionsOfStGroup (   $groupID,
  $userID,
  $visible,
  $inherit = '' 
)

Here is the caller graph for this function:

SetSelfAssign (   $statusgruppe_id,
  $flag = "0" 
)

sets selfassign of a group to 0 or 1/2 dependend on the status of the other groups

Parameters
statusgruppe_id,:id of statusgruppe in database
flag,:0 for users are not allowed to assign themselves to this group or 1 / 2 to set selfassign to the value of the other statusgroups of the same seminar for which selfassign is allowed. If no such group exists, selfassign is set to the value of flag, 1 means selfassigning is allowed and 2 it's only allowed for a maximum of one group.

Here is the call graph for this function:

Here is the caller graph for this function:

SetSelfAssignAll (   $seminar_id,
  $flag = false 
)

Here is the call graph for this function:

SetSelfAssignExclusive (   $seminar_id,
  $flag = false 
)
SortPersonInAfter (   $user_id,
  $after,
  $role_id 
)

Sorts a person in statusgroup after the an other person

Parameters
$user_idthe user to be sorted
$afterto user after which is sorted in
$role_idthe id of the statusgroup the sorting is taking place
SortStatusgruppe (   $insert_after,
  $insert_id 
)

Here is the call graph for this function:

sortStatusgruppeByName (   $statusgruppe_id)
SubSortStatusgruppe (   $insert_vather,
  $insert_daughter 
)

Here is the call graph for this function:

SwapStatusgruppe (   $statusgruppe_id)