Static Public Member Functions |
| static | findBySeminar_id ($course_id) |
| static | getUserRoles ($context, $user) |
| static | expireTableScheme () |
| static | find ($id) |
| static | exists ($id) |
| static | countBySql ($where=1, $params=array()) |
| static | create ($data) |
| static | import ($data) |
| static | findBySQL ($where, $params=array()) |
| static | findThru ($foreign_key_value, $options) |
| static | findEachBySQL ($callable, $where, $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) |
Constructor & Destructor Documentation
| __construct |
( |
|
$id = null | ) |
|
constructor, give primary key of record as param to fetch corresponding record from db if available, if not preset primary key with given value. Give null to create new record
- Parameters
-
| mixed | $id | primary key of table |
Reimplemented from SimpleORMap.
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 findBySeminar_id |
( |
|
$course_id | ) |
|
|
static |
Finds all statusgroups by a course id
- Parameters
-
- Returns
- array Statusgroups
| 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
Field Documentation
Initial value: array('parent' => array('class_name' => 'Statusgruppen',
'foreign_key' => 'range_id'
))
| $db_table = "statusgruppen" |
|
protected |
Initial value: array(
'members' => array(
'class_name' => 'StatusgruppeUser',
'on_delete' => 'delete',
'assoc_foreign_key' => 'statusgruppe_id')
)
The documentation for this class was generated from the following file: