ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Model for a calendar entry. More...
Public Member Functions | |
__construct (int $a_id=0) | |
__clone () | |
clone instance More... | |
setContextInfo (string $a_info) | |
getContextInfo () | |
getEntryId () | |
getLastUpdate () | |
setLastUpdate (ilDateTime $a_date) | |
getStart () | |
Get start of date period. More... | |
setStart (?ilDateTime $a_start) | |
getEnd () | |
Get end of period. More... | |
setEnd (?ilDateTime $a_end) | |
setTitle (string $a_title) | |
getTitle () | |
getPresentationTitle (bool $a_shorten=true) | |
getPresentationStyle () | |
setSubtitle (string $a_subtitle) | |
set subtitle Used for automatic generated appointments. More... | |
getSubtitle () | |
setDescription (string $a_description) | |
getDescription () | |
setLocation (string $a_location) | |
getLocation () | |
setFurtherInformations (string $a_informations) | |
getFurtherInformations () | |
setFullday (bool $a_fullday) | |
set fullday event Fullday events do not change their time in different timezones. More... | |
isFullday () | |
is event a fullday period More... | |
isAutoGenerated () | |
setAutoGenerated (bool $a_status) | |
setContextId (int $a_context_id) | |
getContextId () | |
setTranslationType (int $a_type) | |
getTranslationType () | |
enableNotification (bool $a_status) | |
isNotificationEnabled () | |
update () | |
save () | |
delete () | |
validate () | |
appointmentToMailString (ilLanguage $lng) | |
Static Public Member Functions | |
static | _delete (int $a_entry_id) |
Data Fields | |
const | TRANSLATION_NONE = 0 |
const | TRANSLATION_SYSTEM = 1 |
Protected Member Functions | |
parseDynamicTitle (string $a_type) | |
read () | |
Protected Attributes | |
ilLogger | $log |
ilDBInterface | $db |
ilLanguage | $lng |
ilErrorHandling | $error |
int | $entry_id = 0 |
ilDateTime | $last_update = null |
string | $title = '' |
string | $presentation_style = '' |
string | $subtitle = '' |
string | $description = '' |
string | $location = '' |
string | $further_informations = '' |
ilDateTime | $start = null |
bool | $fullday = false |
ilDateTime | $end = null |
bool | $is_auto_generated = false |
int | $context_id = 0 |
string | $context_info = '' |
int | $translation_type = ilCalendarEntry::TRANSLATION_NONE |
bool | $notification = false |
ilCalendarEntry::__construct | ( | int | $a_id = 0 | ) |
Definition at line 54 of file class.ilCalendarEntry.php.
References $DIC, ILIAS\Repository\lng(), and read().
ilCalendarEntry::__clone | ( | ) |
clone instance
Definition at line 71 of file class.ilCalendarEntry.php.
|
static |
Definition at line 76 of file class.ilCalendarEntry.php.
References $DIC, $ilDB, $res, and ilCalendarRecurrence\_delete().
Referenced by ilCalendarCategory\delete(), ilCalendarAppEventListener\deleteAppointments(), and ilCalendarRemoteReader\importIcal().
ilCalendarEntry::appointmentToMailString | ( | ilLanguage | $lng | ) |
Definition at line 445 of file class.ilCalendarEntry.php.
References ilDatePresentation\formatPeriod(), getDescription(), getEnd(), getLocation(), getStart(), getTitle(), ilDatePresentation\setUseRelativeDates(), and ilLanguage\txt().
ilCalendarEntry::delete | ( | ) |
Definition at line 389 of file class.ilCalendarEntry.php.
References $res, ilCalendarRecurrence\_delete(), ilCalendarCategoryAssignments\_deleteByAppointmentId(), and getEntryId().
Referenced by ilCalendarAppointmentGUI\delete().
ilCalendarEntry::enableNotification | ( | bool | $a_status | ) |
Definition at line 318 of file class.ilCalendarEntry.php.
References ILIAS\UI\examples\Symbol\Glyph\Notification\notification().
Referenced by read().
ilCalendarEntry::getContextId | ( | ) |
Definition at line 303 of file class.ilCalendarEntry.php.
References $context_id.
Referenced by ilCalendarScheduleFilterConsultationHourInRepository\modifyEvent(), ilCalendarScheduleFilterBookings\modifyEvent(), ilCalendarScheduleFilterExercise\modifyEvent(), ilCalendarScheduleFilterTimings\modifyEvent(), parseDynamicTitle(), save(), and update().
ilCalendarEntry::getContextInfo | ( | ) |
Definition at line 93 of file class.ilCalendarEntry.php.
References $context_info.
Referenced by ilCalendarScheduleFilterTimings\modifyEvent(), save(), and update().
ilCalendarEntry::getDescription | ( | ) |
Definition at line 248 of file class.ilCalendarEntry.php.
References $description.
Referenced by appointmentToMailString(), ilCalendarExport\createVEVENT(), save(), and update().
ilCalendarEntry::getEnd | ( | ) |
Get end of period.
Implements ilDatePeriod.
Definition at line 123 of file class.ilCalendarEntry.php.
References $end.
Referenced by appointmentToMailString(), ilCalendarExport\createVEVENT(), ilCalendarScheduleFilterBookingPool\modifyEvent(), save(), update(), and validate().
ilCalendarEntry::getEntryId | ( | ) |
Definition at line 98 of file class.ilCalendarEntry.php.
References $entry_id.
Referenced by ilCalendarExport\buildAppointmentUrl(), ilCalendarAppointmentGUI\calendarEntryToCategory(), ilCalendarExport\createRecurrences(), ilCalendarExport\createVEVENT(), delete(), ilCalendarViewGUI\getAppointmentShyButton(), ilCalendarExport\isRepeatingAppointment(), ilCalendarScheduleFilterConsultationHourInRepository\modifyEvent(), ilCalendarScheduleFilterBookingPool\modifyEvent(), ilCalendarScheduleFilterBookings\modifyEvent(), ilCalendarScheduleFilterHidden\modifyEvent(), ilCalendarScheduleFilterExercise\modifyEvent(), ilCalendarScheduleFilterTimings\modifyEvent(), parseDynamicTitle(), read(), and update().
ilCalendarEntry::getFurtherInformations | ( | ) |
Definition at line 268 of file class.ilCalendarEntry.php.
References $further_informations.
Referenced by save(), and update().
ilCalendarEntry::getLastUpdate | ( | ) |
Definition at line 103 of file class.ilCalendarEntry.php.
References IL_CAL_UNIX.
Referenced by ilCalendarExport\createVEVENT().
ilCalendarEntry::getLocation | ( | ) |
Definition at line 258 of file class.ilCalendarEntry.php.
References $location.
Referenced by appointmentToMailString(), ilCalendarExport\createVEVENT(), save(), and update().
ilCalendarEntry::getPresentationStyle | ( | ) |
Definition at line 223 of file class.ilCalendarEntry.php.
References $presentation_style.
ilCalendarEntry::getPresentationTitle | ( | bool | $a_shorten = true | ) |
Definition at line 143 of file class.ilCalendarEntry.php.
References $title, getSubtitle(), getTitle(), getTranslationType(), ILIAS\Repository\lng(), parseDynamicTitle(), ilStr\shortenTextExtended(), ilStr\shortenWords(), and TRANSLATION_NONE.
Referenced by ilCalendarExport\createVEVENT(), ilCalendarViewGUI\getAppointmentShyButton(), and ilCalendarScheduleFilterTimings\modifyEvent().
ilCalendarEntry::getStart | ( | ) |
Get start of date period.
Implements ilDatePeriod.
Definition at line 113 of file class.ilCalendarEntry.php.
References $start.
Referenced by ilCalendarExport\addCategories(), appointmentToMailString(), ilCalendarExport\createVEVENT(), ilCalendarWeekGUI\getAppointmentTimeString(), ilCalendarAgendaListGUI\getPluginAgendaItem(), ILIAS\Calendar\ConsultationHours\BookingDataProvider\isFiltered(), parseDynamicTitle(), save(), update(), and validate().
ilCalendarEntry::getSubtitle | ( | ) |
Definition at line 238 of file class.ilCalendarEntry.php.
References $subtitle.
Referenced by getPresentationTitle(), save(), and update().
ilCalendarEntry::getTitle | ( | ) |
Definition at line 138 of file class.ilCalendarEntry.php.
References $title.
Referenced by appointmentToMailString(), getPresentationTitle(), ilCalendarScheduleFilterTimings\modifyEvent(), save(), update(), and validate().
ilCalendarEntry::getTranslationType | ( | ) |
Definition at line 313 of file class.ilCalendarEntry.php.
References $translation_type.
Referenced by getPresentationTitle(), save(), and update().
ilCalendarEntry::isAutoGenerated | ( | ) |
Definition at line 288 of file class.ilCalendarEntry.php.
References $is_auto_generated.
Referenced by ilCalendarScheduleFilterTimings\modifyEvent(), save(), and update().
ilCalendarEntry::isFullday | ( | ) |
is event a fullday period
Implements ilDatePeriod.
Definition at line 283 of file class.ilCalendarEntry.php.
References $fullday.
Referenced by ilCalendarExport\createVEVENT(), read(), save(), and update().
ilCalendarEntry::isNotificationEnabled | ( | ) |
Definition at line 323 of file class.ilCalendarEntry.php.
References $notification.
Referenced by save(), and update().
|
protected |
Definition at line 168 of file class.ilCalendarEntry.php.
References $title, ilConsultationHourAppointments\getAppointmentIds(), getContextId(), getEntryId(), getStart(), and ILIAS\Repository\lng().
Referenced by getPresentationTitle().
|
protected |
Definition at line 417 of file class.ilCalendarEntry.php.
References $res, enableNotification(), ilDBConstants\FETCHMODE_OBJECT, getEntryId(), IL_CAL_DATETIME, isFullday(), setAutoGenerated(), setContextId(), setContextInfo(), setDescription(), setFullday(), setFurtherInformations(), setLastUpdate(), setLocation(), setSubtitle(), setTitle(), and setTranslationType().
Referenced by __construct().
ilCalendarEntry::save | ( | ) |
Definition at line 355 of file class.ilCalendarEntry.php.
References $res, getContextId(), getContextInfo(), getDescription(), getEnd(), getFurtherInformations(), getLocation(), getStart(), getSubtitle(), getTitle(), getTranslationType(), IL_CAL_DATETIME, IL_CAL_UNIX, isAutoGenerated(), isFullday(), isNotificationEnabled(), and ilTimeZone\UTC.
ilCalendarEntry::setAutoGenerated | ( | bool | $a_status | ) |
Definition at line 293 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setContextId | ( | int | $a_context_id | ) |
Definition at line 298 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setContextInfo | ( | string | $a_info | ) |
Definition at line 88 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setDescription | ( | string | $a_description | ) |
Definition at line 243 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setEnd | ( | ?ilDateTime | $a_end | ) |
Definition at line 128 of file class.ilCalendarEntry.php.
Referenced by ilCalendarScheduleFilterBookingPool\modifyEvent().
ilCalendarEntry::setFullday | ( | bool | $a_fullday | ) |
set fullday event Fullday events do not change their time in different timezones.
It is possible to create fullday events with a duration of more than one day.
Definition at line 278 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setFurtherInformations | ( | string | $a_informations | ) |
Definition at line 263 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setLastUpdate | ( | ilDateTime | $a_date | ) |
Definition at line 108 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setLocation | ( | string | $a_location | ) |
Definition at line 253 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setStart | ( | ?ilDateTime | $a_start | ) |
Definition at line 118 of file class.ilCalendarEntry.php.
ilCalendarEntry::setSubtitle | ( | string | $a_subtitle | ) |
set subtitle Used for automatic generated appointments.
Will be appended to the title.
Definition at line 233 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setTitle | ( | string | $a_title | ) |
Definition at line 133 of file class.ilCalendarEntry.php.
Referenced by ilCalendarScheduleFilterTimings\modifyEvent(), and read().
ilCalendarEntry::setTranslationType | ( | int | $a_type | ) |
Definition at line 308 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::update | ( | ) |
Definition at line 328 of file class.ilCalendarEntry.php.
References $res, getContextId(), getContextInfo(), getDescription(), getEnd(), getEntryId(), getFurtherInformations(), getLocation(), getStart(), getSubtitle(), getTitle(), getTranslationType(), IL_CAL_DATETIME, IL_CAL_UNIX, isAutoGenerated(), isFullday(), isNotificationEnabled(), and ilTimeZone\UTC.
ilCalendarEntry::validate | ( | ) |
Definition at line 400 of file class.ilCalendarEntry.php.
References ilDateTime\_before(), getEnd(), getStart(), getTitle(), and ILIAS\Repository\lng().
|
protected |
Definition at line 49 of file class.ilCalendarEntry.php.
Referenced by getContextId().
|
protected |
Definition at line 50 of file class.ilCalendarEntry.php.
Referenced by getContextInfo().
|
protected |
Definition at line 33 of file class.ilCalendarEntry.php.
|
protected |
Definition at line 42 of file class.ilCalendarEntry.php.
Referenced by getDescription().
|
protected |
Definition at line 47 of file class.ilCalendarEntry.php.
Referenced by getEnd().
|
protected |
Definition at line 37 of file class.ilCalendarEntry.php.
Referenced by getEntryId().
|
protected |
Definition at line 35 of file class.ilCalendarEntry.php.
|
protected |
Definition at line 46 of file class.ilCalendarEntry.php.
Referenced by isFullday().
|
protected |
Definition at line 44 of file class.ilCalendarEntry.php.
Referenced by getFurtherInformations().
|
protected |
Definition at line 48 of file class.ilCalendarEntry.php.
Referenced by isAutoGenerated().
|
protected |
Definition at line 38 of file class.ilCalendarEntry.php.
|
protected |
Definition at line 34 of file class.ilCalendarEntry.php.
|
protected |
Definition at line 43 of file class.ilCalendarEntry.php.
Referenced by getLocation().
|
protected |
Definition at line 32 of file class.ilCalendarEntry.php.
|
protected |
Definition at line 52 of file class.ilCalendarEntry.php.
Referenced by isNotificationEnabled().
|
protected |
Definition at line 40 of file class.ilCalendarEntry.php.
Referenced by getPresentationStyle().
|
protected |
Definition at line 45 of file class.ilCalendarEntry.php.
Referenced by getStart().
|
protected |
Definition at line 41 of file class.ilCalendarEntry.php.
Referenced by getSubtitle().
|
protected |
Definition at line 39 of file class.ilCalendarEntry.php.
Referenced by getPresentationTitle(), getTitle(), and parseDynamicTitle().
|
protected |
Definition at line 51 of file class.ilCalendarEntry.php.
Referenced by getTranslationType().
const ilCalendarEntry::TRANSLATION_NONE = 0 |
Definition at line 29 of file class.ilCalendarEntry.php.
Referenced by getPresentationTitle(), ilObjSession\prepareCalendarAppointments(), and ilObjEmployeeTalk\read().
const ilCalendarEntry::TRANSLATION_SYSTEM = 1 |
Definition at line 30 of file class.ilCalendarEntry.php.
Referenced by ilConsultationHoursGUI\createAppointments(), ilExAssignment\handleCalendarEntries(), ilObjGroup\prepareAppointments(), and ilObjCourse\prepareAppointments().