ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Model for a calendar entry. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
__clone () | |
clone instance More... | |
setContextInfo ($a_info) | |
Set context info. More... | |
getContextInfo () | |
getEntryId () | |
get entry id More... | |
getLastUpdate () | |
get last update More... | |
setLastUpdate ($a_date) | |
set last update More... | |
getStart () | |
get start More... | |
setStart ($a_start) | |
public More... | |
getEnd () | |
get end public More... | |
setEnd ($a_end) | |
set end public More... | |
setTitle ($a_title) | |
set title More... | |
getTitle () | |
get title More... | |
getPresentationTitle ($a_shorten=true) | |
get title for presentation. More... | |
getPresentationStyle () | |
setSubtitle ($a_subtitle) | |
set subtitle Used for automatic generated appointments. More... | |
getSubtitle () | |
get subtitle More... | |
setDescription ($a_description) | |
set description More... | |
getDescription () | |
get description More... | |
setLocation ($a_location) | |
set location More... | |
getLocation () | |
get location More... | |
setFurtherInformations ($a_informations) | |
set further informations More... | |
getFurtherInformations () | |
get further informations More... | |
setFullday ($a_fullday) | |
set fullday event Fullday events do not change their time in different timezones. More... | |
isFullday () | |
is fullday More... | |
isAutoGenerated () | |
is auto generated More... | |
setAutoGenerated ($a_status) | |
set auto generated More... | |
isMilestone () | |
is milestone More... | |
setMilestone ($a_status) | |
set milestone More... | |
setCompletion ($a_completion) | |
Set Completion. More... | |
getCompletion () | |
Get Completion. More... | |
setContextId ($a_context_id) | |
set context id More... | |
getContextId () | |
get context id More... | |
setTranslationType ($a_type) | |
public More... | |
getTranslationType () | |
get translation type More... | |
enableNotification ($a_status) | |
Enable course group notification. More... | |
isNotificationEnabled () | |
Check if course group notification is enabled. More... | |
update () | |
update More... | |
save () | |
save one entry More... | |
delete () | |
delete More... | |
validate () | |
validate More... | |
appointmentToMailString ($lng) | |
writeResponsibleUsers ($a_users) | |
Write users responsible for a milestone. More... | |
readResponsibleUsers () | |
Read responsible users. More... | |
Static Public Member Functions | |
static | _delete ($a_entry_id) |
delete entry More... | |
Protected Member Functions | |
parseDynamicTitle ($a_type) | |
read () | |
protected More... | |
Protected Attributes | |
$log | |
$db | |
$entry_id | |
$last_update | |
$title | |
$subtitle | |
$description | |
$location | |
$further_informations | |
$start = null | |
$fullday | |
$end = null | |
$is_auto_generated = false | |
$context_id = 0 | |
$context_info = '' | |
$translation_type = IL_CAL_TRANSLATION_NONE | |
$is_milestone = false | |
$completion = 0 | |
$notification = false | |
ilCalendarEntry::__construct | ( | $a_id = 0 | ) |
Constructor.
public
int | cal_entry id |
Definition at line 52 of file class.ilCalendarEntry.php.
References $DIC, $ilDB, and read().
ilCalendarEntry::__clone | ( | ) |
clone instance
Definition at line 69 of file class.ilCalendarEntry.php.
|
static |
delete entry
public
Definition at line 81 of file class.ilCalendarEntry.php.
References $DIC, $ilDB, $query, $res, and ilCalendarRecurrence\_delete().
Referenced by ilCalendarCategory\delete(), ilCalendarAppEventListener\deleteAppointments(), and ilCalendarRemoteReader\importIcal().
ilCalendarEntry::appointmentToMailString | ( | $lng | ) |
ilLanguage | $lng |
Definition at line 732 of file class.ilCalendarEntry.php.
References $lng, ilDatePresentation\formatPeriod(), getDescription(), getEnd(), getLocation(), getStart(), getTitle(), and ilDatePresentation\setUseRelativeDates().
ilCalendarEntry::delete | ( | ) |
delete
public
Definition at line 639 of file class.ilCalendarEntry.php.
References $DIC, $ilDB, $query, $res, ilCalendarRecurrence\_delete(), ilCalendarCategoryAssignments\_deleteByAppointmentId(), and getEntryId().
ilCalendarEntry::enableNotification | ( | $a_status | ) |
Enable course group notification.
bool | $a_status |
Definition at line 537 of file class.ilCalendarEntry.php.
References notification().
Referenced by read().
ilCalendarEntry::getCompletion | ( | ) |
Get Completion.
Definition at line 482 of file class.ilCalendarEntry.php.
References $completion.
Referenced by save(), and update().
ilCalendarEntry::getContextId | ( | ) |
get context id
public
Definition at line 505 of file class.ilCalendarEntry.php.
References $context_id.
Referenced by ilCalendarScheduleFilterBookings\modifyEvent(), ilCalendarScheduleFilterExercise\modifyEvent(), ilCalendarScheduleFilterTimings\modifyEvent(), parseDynamicTitle(), save(), and update().
ilCalendarEntry::getContextInfo | ( | ) |
Definition at line 109 of file class.ilCalendarEntry.php.
References $context_info.
Referenced by ilCalendarScheduleFilterTimings\modifyEvent(), save(), and update().
ilCalendarEntry::getDescription | ( | ) |
get description
public
Definition at line 346 of file class.ilCalendarEntry.php.
References $description.
Referenced by appointmentToMailString(), save(), and update().
ilCalendarEntry::getEnd | ( | ) |
get end public
Implements ilDatePeriod.
Definition at line 177 of file class.ilCalendarEntry.php.
References $end.
Referenced by appointmentToMailString(), ilCalendarWeekGUI\getAppointmentTimeString(), ilCalendarScheduleFilterBookingPool\modifyEvent(), save(), update(), and validate().
ilCalendarEntry::getEntryId | ( | ) |
get entry id
public
Definition at line 120 of file class.ilCalendarEntry.php.
References $entry_id.
Referenced by ilCalendarExport\buildAppointmentUrl(), ilCalendarAppointmentGUI\calendarEntryToCategory(), delete(), ilDownloadFilesBackgroundTask\getEventFileNameFromId(), ilCalendarScheduleFilterBookings\modifyEvent(), ilCalendarScheduleFilterHidden\modifyEvent(), ilCalendarScheduleFilterExercise\modifyEvent(), ilCalendarScheduleFilterBookingPool\modifyEvent(), ilCalendarScheduleFilterTimings\modifyEvent(), read(), readResponsibleUsers(), update(), and writeResponsibleUsers().
ilCalendarEntry::getFurtherInformations | ( | ) |
get further informations
public
Definition at line 390 of file class.ilCalendarEntry.php.
References $further_informations.
Referenced by save(), and update().
ilCalendarEntry::getLastUpdate | ( | ) |
get last update
public
Definition at line 132 of file class.ilCalendarEntry.php.
References IL_CAL_UNIX.
ilCalendarEntry::getLocation | ( | ) |
get location
public
Definition at line 368 of file class.ilCalendarEntry.php.
References $location.
Referenced by appointmentToMailString(), save(), and update().
ilCalendarEntry::getPresentationStyle | ( | ) |
Definition at line 251 of file class.ilCalendarEntry.php.
ilCalendarEntry::getPresentationTitle | ( | $a_shorten = true | ) |
get title for presentation.
Special handling for auto generated appointments
public
Definition at line 222 of file class.ilCalendarEntry.php.
References $DIC, $lng, $subtitle, $title, getSubtitle(), getTitle(), getTranslationType(), IL_CAL_TRANSLATION_NONE, parseDynamicTitle(), ilUtil\shortenText(), and ilUtil\shortenWords().
Referenced by ilCalendarScheduleFilterTimings\modifyEvent().
ilCalendarEntry::getStart | ( | ) |
get start
public
Implements ilDatePeriod.
Definition at line 156 of file class.ilCalendarEntry.php.
References $start.
Referenced by appointmentToMailString(), ilCalendarWeekGUI\getAppointmentTimeString(), parseDynamicTitle(), save(), update(), and validate().
ilCalendarEntry::getSubtitle | ( | ) |
get subtitle
public
Definition at line 324 of file class.ilCalendarEntry.php.
References $subtitle.
Referenced by getPresentationTitle(), save(), and update().
ilCalendarEntry::getTitle | ( | ) |
get title
public
Definition at line 210 of file class.ilCalendarEntry.php.
References $title.
Referenced by appointmentToMailString(), getPresentationTitle(), ilCalendarScheduleFilterTimings\modifyEvent(), save(), update(), and validate().
ilCalendarEntry::getTranslationType | ( | ) |
get translation type
public
Definition at line 528 of file class.ilCalendarEntry.php.
References $translation_type.
Referenced by getPresentationTitle(), save(), and update().
ilCalendarEntry::isAutoGenerated | ( | ) |
is auto generated
public
Definition at line 426 of file class.ilCalendarEntry.php.
References $is_auto_generated.
Referenced by ilCalendarScheduleFilterTimings\modifyEvent(), save(), and update().
ilCalendarEntry::isFullday | ( | ) |
is fullday
public
Implements ilDatePeriod.
Definition at line 414 of file class.ilCalendarEntry.php.
References $fullday.
Referenced by read(), save(), and update().
ilCalendarEntry::isMilestone | ( | ) |
is milestone
public
Definition at line 450 of file class.ilCalendarEntry.php.
References $is_milestone.
Referenced by save(), and update().
ilCalendarEntry::isNotificationEnabled | ( | ) |
Check if course group notification is enabled.
Definition at line 546 of file class.ilCalendarEntry.php.
References $notification.
Referenced by save(), and update().
|
protected |
Definition at line 257 of file class.ilCalendarEntry.php.
References $a_type, $current, $DIC, $lng, $style, $title, ilConsultationHourAppointments\getAppointmentIds(), getContextId(), and getStart().
Referenced by getPresentationTitle().
|
protected |
protected
Definition at line 693 of file class.ilCalendarEntry.php.
References $DIC, $ilDB, $query, $res, $row, enableNotification(), ilDBConstants\FETCHMODE_OBJECT, getEntryId(), IL_CAL_DATETIME, isFullday(), setAutoGenerated(), setCompletion(), setContextId(), setContextInfo(), setDescription(), setFullday(), setFurtherInformations(), setLastUpdate(), setLocation(), setMilestone(), setSubtitle(), setTitle(), and setTranslationType().
Referenced by __construct().
ilCalendarEntry::readResponsibleUsers | ( | ) |
Read responsible users.
Definition at line 785 of file class.ilCalendarEntry.php.
References $DIC, $ilDB, $n, ilObjUser\_lookupLogin(), ilObjUser\_lookupName(), and getEntryId().
ilCalendarEntry::save | ( | ) |
save one entry
public
Definition at line 596 of file class.ilCalendarEntry.php.
References $DIC, $ilDB, $query, $res, getCompletion(), getContextId(), getContextInfo(), getDescription(), getEnd(), getFurtherInformations(), getLocation(), getStart(), getSubtitle(), getTitle(), getTranslationType(), IL_CAL_DATETIME, IL_CAL_UNIX, isAutoGenerated(), isFullday(), isMilestone(), isNotificationEnabled(), and ilTimeZone\UTC.
ilCalendarEntry::setAutoGenerated | ( | $a_status | ) |
set auto generated
public
Definition at line 438 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setCompletion | ( | $a_completion | ) |
Set Completion.
int | $a_completion | Completion |
Definition at line 472 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setContextId | ( | $a_context_id | ) |
set context id
public
int | context id |
Definition at line 494 of file class.ilCalendarEntry.php.
References $a_context_id.
Referenced by read().
ilCalendarEntry::setContextInfo | ( | $a_info | ) |
Set context info.
$a_info |
Definition at line 101 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setDescription | ( | $a_description | ) |
set description
public
string | description |
Definition at line 336 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setEnd | ( | $a_end | ) |
set end public
Definition at line 187 of file class.ilCalendarEntry.php.
Referenced by ilCalendarScheduleFilterBookingPool\modifyEvent().
ilCalendarEntry::setFullday | ( | $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.
public
bool | fullday |
Definition at line 404 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setFurtherInformations | ( | $a_informations | ) |
set further informations
public
string | further informations |
Definition at line 380 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setLastUpdate | ( | $a_date | ) |
set last update
public
Definition at line 144 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setLocation | ( | $a_location | ) |
set location
public
string | location |
Definition at line 358 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setMilestone | ( | $a_status | ) |
set milestone
public
Definition at line 462 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setStart | ( | $a_start | ) |
public
Definition at line 167 of file class.ilCalendarEntry.php.
Referenced by ilObjBookingPoolGUI\processBooking().
ilCalendarEntry::setSubtitle | ( | $a_subtitle | ) |
set subtitle Used for automatic generated appointments.
Will be appended to the title.
public
string | subtitle |
Definition at line 313 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setTitle | ( | $a_title | ) |
set title
public
string | title |
Definition at line 199 of file class.ilCalendarEntry.php.
Referenced by ilCalendarScheduleFilterTimings\modifyEvent(), and read().
ilCalendarEntry::setTranslationType | ( | $a_type | ) |
public
Definition at line 517 of file class.ilCalendarEntry.php.
References $a_type.
Referenced by read().
ilCalendarEntry::update | ( | ) |
update
public
Definition at line 557 of file class.ilCalendarEntry.php.
References $DIC, $ilDB, $query, $res, getCompletion(), getContextId(), getContextInfo(), getDescription(), getEnd(), getEntryId(), getFurtherInformations(), getLocation(), getStart(), getSubtitle(), getTitle(), getTranslationType(), IL_CAL_DATETIME, IL_CAL_UNIX, isAutoGenerated(), isFullday(), isMilestone(), isNotificationEnabled(), and ilTimeZone\UTC.
ilCalendarEntry::validate | ( | ) |
validate
public
Definition at line 664 of file class.ilCalendarEntry.php.
References $DIC, $ilErr, $lng, $success, ilDateTime\_before(), getEnd(), getStart(), and getTitle().
ilCalendarEntry::writeResponsibleUsers | ( | $a_users | ) |
Write users responsible for a milestone.
Definition at line 756 of file class.ilCalendarEntry.php.
References $DIC, $ilDB, and getEntryId().
|
protected |
Definition at line 41 of file class.ilCalendarEntry.php.
Referenced by getCompletion().
|
protected |
Definition at line 37 of file class.ilCalendarEntry.php.
Referenced by getContextId().
|
protected |
Definition at line 38 of file class.ilCalendarEntry.php.
Referenced by getContextInfo().
|
protected |
Definition at line 23 of file class.ilCalendarEntry.php.
|
protected |
Definition at line 30 of file class.ilCalendarEntry.php.
Referenced by getDescription().
|
protected |
Definition at line 35 of file class.ilCalendarEntry.php.
Referenced by getEnd().
|
protected |
Definition at line 26 of file class.ilCalendarEntry.php.
Referenced by getEntryId().
|
protected |
Definition at line 34 of file class.ilCalendarEntry.php.
Referenced by isFullday().
|
protected |
Definition at line 32 of file class.ilCalendarEntry.php.
Referenced by getFurtherInformations().
|
protected |
Definition at line 36 of file class.ilCalendarEntry.php.
Referenced by isAutoGenerated().
|
protected |
Definition at line 40 of file class.ilCalendarEntry.php.
Referenced by isMilestone().
|
protected |
Definition at line 27 of file class.ilCalendarEntry.php.
|
protected |
Definition at line 31 of file class.ilCalendarEntry.php.
Referenced by getLocation().
|
protected |
Definition at line 22 of file class.ilCalendarEntry.php.
|
protected |
Definition at line 43 of file class.ilCalendarEntry.php.
Referenced by isNotificationEnabled().
|
protected |
Definition at line 33 of file class.ilCalendarEntry.php.
Referenced by getStart().
|
protected |
Definition at line 29 of file class.ilCalendarEntry.php.
Referenced by getPresentationTitle(), and getSubtitle().
|
protected |
Definition at line 28 of file class.ilCalendarEntry.php.
Referenced by getPresentationTitle(), getTitle(), and parseDynamicTitle().
|
protected |
Definition at line 39 of file class.ilCalendarEntry.php.
Referenced by getTranslationType().