|
| static | getEventsByInterval ($user_id, DateTime $start, dateTime $end) |
| |
| static | getConsecutiveNumber ($date, $semester=null) |
| |
| static | findByIssue_id ($issue_id) |
| |
| static | findBySeminar_id ($seminar_id) |
| |
| static | findByRange_id ($seminar_id, $order_by='ORDER BY date') |
| |
| static | findByStatusgruppe_id ($group_id) |
| |
| static | exportUserData (StoredUserData $storage) |
| |
| static | tableScheme ($db_table) |
| |
| static | expireTableScheme () |
| |
| static | find ($id) |
| |
| 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 ($name, $arguments) |
| |
|
| const | FORMAT_DEFAULT = 'default' |
| |
| const | FORMAT_VERBOSE = 'verbose' |
| |
| const | ID_SEPARATOR = '_' |
| |
| static | $schemes = null |
| |
| | cbStudipLog ($type) |
| |
| | _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 = [] |
| |
| | $content_db = [] |
| |
| | $is_new = true |
| |
| | $is_deleted = false |
| |
| | $db_table = '' |
| |
| | $db_fields = null |
| |
| | $pk = null |
| |
| | $default_values = [] |
| |
| | $serialized_fields = [] |
| |
| | $alias_fields = [] |
| |
| | $i18n_fields = [] |
| |
| | $additional_fields = [] |
| |
| | $relations = [] |
| |
| | $has_many = [] |
| |
| | $has_one = [] |
| |
| | $belongs_to = [] |
| |
| | $has_and_belongs_to_many = [] |
| |
| | $registered_callbacks = [] |
| |
| | $known_slots = [] |
| |
| | $notification_map = [] |
| |
| | $additional_data = [] |
| |
| | $getter_setter_map = [] |
| |
| static | $config = [] |
| |
| static | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] |
| |
◆ __construct()
| __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 CourseDate.
◆ checkRelated()
Checks if given user is the responsible lecturer or is member of a related group
@global object $perm The globa perm object.
- Parameters
-
| CourseEvent | $event | The course event to check against. |
| string | $user_id | The id of the user. |
- Returns
- boolean
◆ configure()
| static configure |
( |
|
$config = [] | ) |
|
|
staticprotected |
◆ getAccessibility()
Returns the accessibility of this event. The value is not influenced by the permission of the actual user.
According to RFC5545 the accessibility (property CLASS) is represented by the 3 state PUBLIC, PRIVATE and CONFIDENTIAL
TODO check this statement: An course event is always CONFIDENTIAL
- Returns
- string The accessibility as string.
◆ getAuthor()
Returns the author of this event as user object.
- Returns
- User|null User object.
◆ getCategory()
◆ getChangeDate()
Returns the unix timestamp of the last change.
@access public
◆ getDescription()
Returns the description of the topic. If the user has no permission or the event has no topic or the topics have no descritopn an empty string is returned.
- Returns
- String the description
Reimplemented in CourseCancelledEvent, and CourseMarkedEvent.
◆ getDuration()
Returns the duration of this event in seconds.
- Returns
- int the duration of this event in seconds
◆ getEditor()
Course events have no editor so always null is returned.
- Returns
- null
◆ getEditorId()
Returns the user id of the last editor. Since course events have no editor null is returned.
- Returns
- null|int Returns always null.
◆ getEnd()
Returns the endtime of this event.
- Returns
- int The endtime of this event as a unix timestamp.
◆ getEventsByInterval()
| static getEventsByInterval |
( |
|
$user_id, |
|
|
DateTime |
$start, |
|
|
dateTime |
$end |
|
) |
| |
|
static |
Returns all CourseEvents in the given time range for the given range_id.
- Parameters
-
| string | $user_id | Id of Stud.IP object from type user, course, inst |
| DateTime | $start | The start date time. |
| DateTime | $end | The end date time. |
- Returns
- SimpleORMapCollection Collection of found CourseEvents.
Reimplemented in CourseCancelledEvent, and CourseMarkedEvent.
◆ getImportDate()
Returns the date time the event was imported. Since course events are not imported normaly, returns the date time of creation.
- Returns
- int Date time of import as unix timestamp:
◆ getLocation()
Returns the location. Without permission or the location is not set an empty string is returned.
- See also
- ClendarDate::getRoomName()
- Returns
- string The location
◆ getPermission()
| getPermission |
( |
|
$user_id = null | ) |
|
◆ getProperties()
◆ getProperty()
Returns the value of property with given name.
- Parameters
-
- Returns
- mixed The value of the property.
- Exceptions
-
◆ getRecurrence()
| getRecurrence |
( |
|
$index = null | ) |
|
Returns an array that represents the recurrence rule for this event. If an index is given, returns only this field of the rule.
- Returns
- array|string The array with th recurrence rule or only one field.
◆ getRelatedGroups()
Returns all related groups.
TODO remove, use direct access to field CourseDate::statusgruppen.
- Returns
- SimpleORMapCollection The collection of statusgruppen.
◆ getSeminarId()
Returns the id of the related course
- Returns
- string The id of the related course.
◆ getSemName()
Returns the name of the related course.
- Returns
- string The name of the related course.
◆ getStart()
Returns the starttime as unix timestamp of this event.
- Returns
- int The starttime of this event as a unix timestamp.
◆ getStudipCategory()
Returns the Stud.IP build in category as integer value. If the user has no permission, 255 is returned.
@See config.inc.php $PERS_TERMIN
- Returns
- int the categories
◆ getTitle()
Returns the title of this event. The title of a course event is the name of the course or if a topic is assigned, the title of this topic. If the user has not the permission Event::PERMISSION_READABLE, the title is "Keine Berechtigung.".
- Returns
- string
Reimplemented in CourseCancelledEvent, and CourseMarkedEvent.
◆ getType()
TODO Wird das noch benötigt?
◆ getUid()
Returns the global unique id of this event.
- Returns
- string The global unique id.
◆ havePermission()
| havePermission |
( |
|
$permission, |
|
|
|
$user_id = null |
|
) |
| |
◆ isDayEvent()
Returns whether the event is a all day event.
- Returns
◆ setEnd()
Sets the end date time by given unix timestamp.
- Parameters
-
| string | $timestamp | Unix timestamp. |
◆ setPermissionUser()
| setPermissionUser |
( |
|
$user_id | ) |
|
◆ setStart()
Sets the start date time with given unix timestamp.
- Parameters
-
| string | $timestamp | Unix timestamp. |
◆ toStringAccessibility()
| toStringAccessibility |
( |
| ) |
|
Course events have no accessibility settings so returns always the an empty string.
- Returns
- string The accessibility as string.
◆ toStringCategories()
| toStringCategories |
( |
|
$as_array = false | ) |
|
Returns the name of the category.
- Returns
- string the name of the category
◆ toStringPriority()
Course events have no priority so returns always an empty string.
- Returns
- string The priority as a string.
◆ toStringRecurrence()
| toStringRecurrence |
( |
|
$only_type = false | ) |
|
Returns a string representation of the recurrence rule. Since course events have no recurence defined it returns an empty string.
- Parameters
-
| bool | $only_type | If true returns only the type of recurrence. |
- Returns
- string The recurrence rule - human readable
The documentation for this class was generated from the following file: