Stud.IP
5.4
|
Static Public Member Functions | |
static | findByCourse ($course_id) |
static | findByCourseAndStatus ($course_id, $status) |
static | findByUser ($user_id) |
static | countByCourseAndStatus ($course_id, $status) |
static | getMembers (string $course_id, string $sort_status='autor', string $order_by='nachname asc') |
static | getMemberByIdentification (string $course_id, string $nachname, string $vorname=null) |
static | getMemberByUsername (string $course_id, string $username) |
static | getMemberByEmail ($course_id, $email) |
static | getMemberByDatafield (string $course_id, string $nachname, string $datafield_id) |
static | exportUserData (StoredUserData $storage) |
static | getNextPosition (string $status, string $seminar_id) |
static | resortMembership (string $course_id, int $position, string $status='tutor') |
static | insertCourseMember ($seminar_id, $user_id, $status, $copy_studycourse=false, $contingent=false, $log_message=false) |
Static Public Member Functions inherited from SimpleORMap | |
static | tableScheme ($db_table) |
static | expireTableScheme () |
static | exists ($id) |
static | countBySql ($sql='1', $params=[]) |
static | create ($data) |
static | build ($data, $is_new=true) |
static | buildExisting ($data) |
static | import ($data) |
static | findBySQL ($sql, $params=[]) |
static | findOneBySQL ($where, $params=[]) |
static | findThru ($foreign_key_value, $options) |
static | findEachBySQL ($callable, $sql, $params=[]) |
static | findMany ($pks=[], $order='', $order_params=[]) |
static | findEachMany ($callable, $pks=[], $order='', $order_params=[]) |
static | findAndMapBySQL ($callable, $where, $params=[]) |
static | findAndMapMany ($callable, $pks=[], $order='', $order_params=[]) |
static | deleteBySQL ($where, $params=[]) |
static | toObject ($id_or_object) |
static | __callStatic (string $name, array $arguments) |
Static Protected Member Functions | |
static | configure ($config=[]) |
Static Protected Member Functions inherited from SimpleORMap | |
static | db_table () |
static | db_fields () |
static | pk () |
static | default_values () |
static | serialized_fields () |
static | alias_fields () |
static | i18n_fields () |
static | additional_fields () |
static | has_many () |
static | has_one () |
static | belongs_to () |
static | has_and_belongs_to_many () |
static | registered_callbacks () |
static | known_slots () |
static | notification_map () |
static | getter_setter_map () |
static | configure ($config=[]) |
static | config ($key) |
static | registerCallback ($types, $cb) |
static | unregisterCallback ($types, $cb) |
Additional Inherited Members | |
Data Fields inherited from SimpleORMap | |
const | ID_SEPARATOR = '_' |
Static Public Attributes inherited from SimpleORMap | |
static | $schemes = null |
Protected Member Functions inherited from SimpleORMap | |
_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) | |
cbNotificationMapper ($cb_type) | |
cbAfterInitialize ($cb_type) | |
setSerializedValue ($field, $value) | |
setI18nValue ($field, $value) | |
Protected Attributes inherited from SimpleORMap | |
$content = [] | |
$content_db = [] | |
$is_new = true | |
$is_deleted = false | |
$relations = [] | |
$additional_data = [] | |
Static Protected Attributes inherited from SimpleORMap | |
static | $config = [] |
static | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] |
static | $performs_batch_operation = false |
cbRemoveNotifications | ( | ) |
|
staticprotected |
|
static |
Retrieves the number of all members of a status
String | Array | $status | the status to filter with |
|
static |
Export available data of a given user into a storage object (an instance of the StoredUserData class) for that user.
StoredUserData | $storage | object to store data into |
Implements PrivacyObject.
|
static |
|
static |
|
static |
getExportData | ( | ) |
|
static |
Get user informations by generic datafields for csv-import
string | $course_id | |
string | $nachname | |
string | $datafield_id |
|
static |
Get user informations by email for csv-import
String | $course_id | |
String |
|
static |
Get user informations by first and last name for csv-import
string | $course_id | |
string | $nachname | |
string | $vorname |
|
static |
Get user informations by username for csv-import
string | $course_id | |
string | $username |
|
static |
Get members of a course
string | $course_id | |
string | $sort_status | |
string | $order_by |
|
static |
return the highest position-number increased by one for the passed user-group in the passed seminar
string | $status | can be on of 'tutor', 'dozent', ... |
string | $seminar_id | the seminar to work on |
getUserFullname | ( | $format = 'full' | ) |
|
static |
Insert a user into a seminar with optional log-message and contingent
string | $seminar_id | |
string | $user_id | |
string | $status | status of user in the seminar (user, autor, tutor, dozent) |
boolean | $copy_studycourse | if true, the studycourse is copied from admission_seminar_user to seminar_user. Overrides the $contingent-parameter |
string | $contingent | optional studiengang_id, if no id is given, no contingent is considered |
string | $log_message | optional log-message. if no log-message is given a default one is used |
|
static |
reset the order-positions for the given status in the passed seminar, starting at the passed position
string | $course_id | the seminar to work on |
int | $position | the position to start with |