|
| getChildren () |
|
| getDatafields () |
|
| setDatafields ($data) |
|
| getFullGenderedPaths ($user_id, $seperator=" > ", $pre="") |
|
| getFullGenderedName ($user_id, $seperator=' > ') |
|
| getGenderedName ($user_or_id) |
|
| getName () |
|
| hasFolder () |
|
| getFolder () |
|
| updateFolder ($set) |
|
| findTopics () |
|
| findLecturers () |
|
| isMember ($user_id=null) |
|
| getPlaces () |
|
| removeAllUsers () |
|
| removeUser ($user_id, $deep=false) |
|
| addUser ($user_id, $check=false) |
|
| userMayJoin ($user_id) |
|
| userMayLeave ($user_id) |
|
| userHasExclusiveGroup ($user_id) |
|
| sortMembersAlphabetic () |
|
| hasSpace () |
|
| moveUser ($user_id, $pos) |
|
| remove () |
|
| delete () |
|
| cbAddPosition () |
|
| cbReorderPositions () |
|
| __construct ($id=null) |
|
| __clone () |
|
| getRelationOptions ($relation) |
|
| getTableMetadata () |
|
| hasAutoIncrementColumn () |
|
| setId ($id) |
|
| getId () |
|
| getNewId () |
|
| toArray ($only_these_fields=null) |
|
| toRawArray ($only_these_fields=null) |
|
| toArrayRecursive ($only_these_fields=null) |
|
| getValue ($field) |
|
| getRelationValue ($relation, $field) |
|
| getDefaultValue ($field) |
|
| setValue ($field, $value) |
|
| __get ($field) |
|
| __set ($field, $value) |
|
| __isset ($field) |
|
| offsetExists ($offset) |
|
| offsetGet ($offset) |
|
| offsetSet ($offset, $value) |
|
| offsetUnset ($offset) |
|
| getIterator () |
|
| count () |
|
| isField ($field) |
|
| isAdditionalField ($field) |
|
| isAliasField ($field) |
|
| isI18nField ($field) |
|
| setData ($data, $reset=false) |
|
| isNew () |
|
| isDeleted () |
|
| setNew ($is_new) |
|
| getWhereQuery () |
|
| restore () |
|
| store () |
|
| triggerChdate () |
|
| delete () |
|
| isDirty () |
|
| isFieldDirty ($field) |
|
| revertValue ($field) |
|
| getPristineValue ($field) |
|
| initRelation ($relation) |
|
| resetRelation ($relation) |
|
| cleanup () |
|
|
static | findAllByRangeId ($range_id, $as_collection=false) |
|
static | findBySeminar_id ($course_id) |
|
static | findByTermin_id ($termin_id) |
|
static | findContactGroups ($user_id=null) |
|
static | findJoinableGroups ($range_id, $user_id) |
|
static | getUserRoles ($context, $user) |
|
static | exportUserData (StoredUserData $storage) |
|
static | tableScheme ($db_table) |
|
static | expireTableScheme () |
|
static | find ($id) |
|
static | exists ($id) |
|
static | countBySql ($sql=1, $params=array()) |
|
static | create ($data) |
|
static | build ($data, $is_new=true) |
|
static | buildExisting ($data) |
|
static | import ($data) |
|
static | findBySQL ($sql, $params=array()) |
|
static | findOneBySQL ($where, $params=array()) |
|
static | findThru ($foreign_key_value, $options) |
|
static | findEachBySQL ($callable, $sql, $params=array()) |
|
static | findMany ($pks=array(), $order='', $order_params=array()) |
|
static | findEachMany ($callable, $pks=array(), $order='', $order_params=array()) |
|
static | findAndMapBySQL ($callable, $where, $params=array()) |
|
static | findAndMapMany ($callable, $pks=array(), $order='', $order_params=array()) |
|
static | deleteBySQL ($where, $params=array()) |
|
static | toObject ($id_or_object) |
|
static | __callStatic ($name, $arguments) |
|
|
static | $schemes = null |
|
| _getId ($field) |
|
| _setId ($field, $value) |
|
| _getAdditionalValueFromRelation ($field) |
|
| _setAdditionalValueFromRelation ($field, $value) |
|
| _getAdditionalValue ($field) |
|
| _setAdditionalValue ($field, $value) |
|
| parseRelationOptions ($type, $name, $options) |
|
| storeRelations ($only_these=null) |
|
| deleteRelations () |
|
| initializeContent () |
|
| applyCallbacks ($type) |
|
| registerCallback ($types, $cb) |
|
| unregisterCallback ($types, $cb) |
|
| cbAutoIncrementColumn ($type) |
|
| cbAutoKeyCreation () |
|
| cbNotificationMapper ($cb_type) |
|
| cbAfterInitialize ($cb_type) |
|
| setSerializedValue ($field, $value) |
|
| setI18nValue ($field, $value) |
|
| cbI18N ($type) |
|
| $content = array() |
|
| $content_db = array() |
|
| $is_new = true |
|
| $is_deleted = false |
|
| $db_table = '' |
|
| $db_fields = null |
|
| $pk = null |
|
| $default_values = array() |
|
| $serialized_fields = array() |
|
| $alias_fields = array() |
|
| $i18n_fields = array() |
|
| $additional_fields = array() |
|
| $relations = array() |
|
| $has_many = array() |
|
| $has_one = array() |
|
| $belongs_to = array() |
|
| $has_and_belongs_to_many = array() |
|
| $registered_callbacks = array() |
|
| $known_slots = array() |
|
| $notification_map = array() |
|
| $additional_data = array() |
|
| $getter_setter_map = array() |
|
static | $config = array() |
|
static | $reserved_slots = array('value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id') |
|
◆ addUser()
addUser |
( |
|
$user_id, |
|
|
|
$check = false |
|
) |
| |
Adds a user to a group
- Parameters
-
string | $user_id | The user id |
boolean | $check | if true checks if there is space left in this group |
- Returns
- boolean true if user was added
◆ cbAddPosition()
Adds the next free position if position is null.
◆ cbReorderPositions()
Reorders position after delete or for the assoicated range_id.
◆ configure()
static configure |
( |
|
$config = array() | ) |
|
|
staticprotected |
◆ delete()
Deletes a status group and all it's child groups.
- Returns
- int number of deleted groups
◆ exportUserData()
◆ findAllByRangeId()
static findAllByRangeId |
( |
|
$range_id, |
|
|
|
$as_collection = false |
|
) |
| |
|
static |
◆ findBySeminar_id()
static findBySeminar_id |
( |
|
$course_id | ) |
|
|
static |
Finds all statusgroups by a course id
- Parameters
-
- Returns
- array Statusgroups
◆ findByTermin_id()
static findByTermin_id |
( |
|
$termin_id | ) |
|
|
static |
◆ findContactGroups()
static findContactGroups |
( |
|
$user_id = null | ) |
|
|
static |
◆ findJoinableGroups()
static findJoinableGroups |
( |
|
$range_id, |
|
|
|
$user_id |
|
) |
| |
|
static |
Find all groups belonging to the given range_id that may be joined by the given user.
- Parameters
-
String | $range_id | range_id the groups shall belong to |
String | $user_id | user to check |
- Returns
- array
◆ findLecturers()
Finds Lecturers assigned to this group via course dates.
- Returns
- array
◆ findTopics()
Finds CourseTopics assigned to this group via course dates.
- Returns
- array
◆ getChildren()
◆ getDatafields()
◆ getFolder()
Gets the folder assigned to this statusgroup.
- Returns
- CourseGroupFolder|null
◆ getFullGenderedName()
getFullGenderedName |
( |
|
$user_id, |
|
|
|
$seperator = ' , |
|
|
' |
|
|
) |
| |
Produces string of all statusgroups a user is in (upwards from the current group)
- Parameters
-
string | $user_id | The user_id |
string | $seperator | The sign between the full paths |
- Returns
- array String of full gendered paths separated by given separator
◆ getFullGenderedPaths()
getFullGenderedPaths |
( |
|
$user_id, |
|
|
|
$seperator = " > " , |
|
|
|
$pre = "" |
|
) |
| |
Produces an array of all statusgroups a user is in
- Parameters
-
string | $user_id | The user_id |
string | $seperator | The sign between the full paths |
string | $pre | Preface of the outputted string (used for recursion) |
- Returns
- array Stringarray of full gendered paths
◆ getGenderedName()
getGenderedName |
( |
|
$user_or_id | ) |
|
Returns the gendered name of a statusgroup
- Parameters
-
string | User | $user_id | The user_id |
- Returns
- string The gendered name
◆ getName()
◆ getPlaces()
Displayfunction to show the places left in this group
- Returns
- string displaystring
◆ getUserRoles()
static getUserRoles |
( |
|
$context, |
|
|
|
$user |
|
) |
| |
|
static |
Puts out an array of all gendered userroles for a user in a certain context
- Parameters
-
string | $context | The context |
string | $user | The user id |
- Returns
- array All roles
◆ hasFolder()
Checks if a statusgroup has a folder.
- Returns
- boolean true</> if the statusgroup has a folder, else false
◆ hasSpace()
Checks if there is free space in this group
- Returns
- true if there is free space
◆ isMember()
isMember |
( |
|
$user_id = null | ) |
|
Checks if a user is a member of this group
- Parameters
-
string | $user_id | The user id |
- Returns
- boolean true if user is a member of this group
◆ moveUser()
moveUser |
( |
|
$user_id, |
|
|
|
$pos |
|
) |
| |
Move a user to a position of a group
- Parameters
-
◆ remove()
Deletes a status group. Any associated child group will move upwards in the tree.
◆ removeAllUsers()
Remove all users of this group
◆ removeUser()
removeUser |
( |
|
$user_id, |
|
|
|
$deep = false |
|
) |
| |
Remove one user from this group
- Parameters
-
string | $user_id | The user id |
bool | $deep | Remove user from children as well? |
- Returns
- bool
◆ setDatafields()
◆ sortMembersAlphabetic()
sortMembersAlphabetic |
( |
| ) |
|
Sorts the member of a group alphabetic
◆ updateFolder()
Delete or create a folder
- Parameters
-
boolean | $set | true Create a folder false Unlink the existing folder from the group |
◆ userHasExclusiveGroup()
userHasExclusiveGroup |
( |
|
$user_id | ) |
|
Checks if the user is already in an exclusive group of this range
- Parameters
-
string | $user_id | The user id |
- Returns
- boolean true if user has already an exclusive group
◆ userMayJoin()
Checks if a user could join this group
- Parameters
-
string | $user_id | The user id |
- Returns
- boolean true if user is allowed to join
◆ userMayLeave()
Checks if a user could leave this group
- Parameters
-
string | $user_id | The user id |
- Returns
- boolean true if user is allowed to leave
◆ $keep_children
The documentation for this class was generated from the following file: