Stud.IP
6.0
|
Public Member Functions | |
getObjectId () | |
getPrimaryObjectID () | |
getObjectClass () | |
getTitle () | |
getBegin () | |
getEnd () | |
getDuration () | |
getLocation () | |
getUniqueId () | |
getDescription () | |
getAdditionalDescriptions () | |
isAllDayEvent () | |
isWritable (string $user_id) | |
getCreationDate () | |
getModificationDate () | |
getImportDate () | |
getAuthor () | |
getEditor () | |
toEventData (string $user_id) | |
Static Public Member Functions | |
static | getEvents (DateTime $begin, DateTime $end, string $range_id) |
The Event interface represents calendar events.
getAdditionalDescriptions | ( | ) |
Returns additional descriptions of the Event object. These are specific for each implementation.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getAuthor | ( | ) |
Returns the author of this event as user object.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getBegin | ( | ) |
Returns the start time of the event.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getCreationDate | ( | ) |
Returns the creation date of the event.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getDescription | ( | ) |
Returns the description of the event.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getDuration | ( | ) |
Returns the duration of the event.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getEditor | ( | ) |
Returns the editor of this event as user object.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getEnd | ( | ) |
Returns the end time of the event.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
|
static |
Retrieves events that lie in a given time range.
DateTime | $begin | The beginning of the time range. |
DateTime | $end | The end of the time range. |
string | $range_id | The range for which to get the events. This may be a user-ID, course-ID or another kind of ID. |
Implemented in CourseDate, CourseExDate, ScheduleEntry, CalendarCourseDate, and CalendarCourseExDate.
getImportDate | ( | ) |
Returns the import date of the event.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getLocation | ( | ) |
Returns the location where the event takes place, if applicable.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getModificationDate | ( | ) |
Returns the modification date of the event.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getObjectClass | ( | ) |
Returns the class of the Event implementation.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getObjectId | ( | ) |
Returns the ID of the event. This is the ID that is only valid inside of Stud.IP.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getPrimaryObjectID | ( | ) |
Returns the ID of the primary object where this object is linked to in a primary-secondary relationship where this object is a secondary object.
Example: A course date is a secondary object and the course it belongs to is the primary object.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getTitle | ( | ) |
Returns the title of this event. If the user has not the permission Event::PERMISSION_READABLE, the title is "Keine Berechtigung.".
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
getUniqueId | ( | ) |
Returns the global unique id of the event.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
isAllDayEvent | ( | ) |
Returns whether the event is an all day event or not.
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
isWritable | ( | string | $user_id | ) |
Determines whether the specified user has write permissions for the event.
string | $user_id | The user for which to check write permissions. |
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.
toEventData | ( | string | $user_id | ) |
Returns a JSON-encoded fullcalendar event object that represents the event.
$user_id | string The user for which to generate the fullcalendar event. |
Implemented in CourseDate, CalendarDateAssignment, CourseExDate, and ScheduleEntry.