Static Public Member Functions |
| static | findBySeminar_id ($course_id) |
| static | findByTermin_id ($termin_id) |
| static | findContactGroups ($user_id=null) |
| static | getUserRoles ($context, $user) |
| 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 | findByObject (SimpleORMap $object) |
| 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) |
Additional Inherited Members |
| | _getId ($field) |
| | _setId ($field, $value) |
| | _getAdditionalValueFromRelation ($field) |
| | _setAdditionalValueFromRelation ($field, $value) |
| | _getAdditionalValue ($field) |
| | _setAdditionalValue ($field, $value) |
| | parseRelationOptions ($type, $name, $options) |
| | getTableScheme () |
| | storeRelations ($only_these=null) |
| | deleteRelations () |
| | initializeContent () |
| | applyCallbacks ($type) |
| | registerCallback ($types, $cb) |
| | unregisterCallback ($types, $cb) |
| | cbAutoIncrementColumn ($type) |
| | cbAutoKeyCreation () |
| | cbNotificationMapper ($cb_type) |
| | setSerializedValue ($field, $value) |
| | $content = array() |
| | $content_db = array() |
| | $is_new = true |
| | $db_table = '' |
| | $db_fields = null |
| | $pk = null |
| | $default_values = array() |
| | $serialized_fields = array() |
| | $alias_fields = array() |
| | $additional_fields = array() |
| | $relations = array() |
| | $has_many = array() |
| | $has_one = array() |
| | $belongs_to = array() |
| | $has_and_belongs_to_many = array() |
| | $registered_callbacks |
| | $known_slots = array() |
| | $reserved_slots = array('value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id') |
| | $notification_map = array() |
| | $additional_data = array() |
| static | $schemes = null |
| static | $config = array() |
Member Function Documentation
| 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
| static configure |
( |
|
$config = array() | ) |
|
|
staticprotected |
set configuration data from subclass
- Parameters
-
| array | $config | configuration data |
- Returns
- void
Reimplemented from SimpleORMap.
| static findBySeminar_id |
( |
|
$course_id | ) |
|
|
static |
Finds all statusgroups by a course id
- Parameters
-
- Returns
- array Statusgroups
| static findByTermin_id |
( |
|
$termin_id | ) |
|
|
static |
| static findContactGroups |
( |
|
$user_id = null | ) |
|
|
static |
| 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 |
( |
|
$user_id | ) |
|
Returns the gendered name of a statusgroup
- Parameters
-
| string | $user_id | The user_id |
- Returns
- string The gendered name
Displayfunction to show the places left in this group
- Returns
- string displaystring
| 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
Checks if a statusgroup has a folder.
- Returns
- boolean true</> if the statusgroup has a folder, else false
Checks if there is free space in this group
- Returns
- true if there is free space
| 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 |
( |
|
$user_id, |
|
|
|
$pos |
|
) |
| |
Move a user to a position of a group
- Parameters
-
Remove all users of this group
Remove one user of this group
- Parameters
-
| string | $user_id | The user id |
| sortMembersAlphabetic |
( |
| ) |
|
Sorts the member of a group alphabetic
store entry in database
- Exceptions
-
| UnexpectedValueException | if there are forbidden NULL values |
- Returns
- number|boolean
Reimplemented from SimpleORMap.
Delete or create a filder
- Parameters
-
| boolean | $set | true Create a folder false Delete the folder |
| 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
Checks if a user could join this group
- Parameters
-
| string | $user_id | The user id |
- Returns
- boolean true if user is allowed to join
The documentation for this class was generated from the following file: