ILIAS
Release_4_0_x_branch Revision 61816
|
Model for a calendar entry. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. | |
getEntryId () | |
get entry id | |
getLastUpdate () | |
get last update | |
setLastUpdate ($a_date) | |
set last update | |
getStart () | |
get start | |
setStart (ilDateTime $a_start) | |
public | |
getEnd () | |
get end public | |
setEnd ($a_end) | |
set end public | |
setTitle ($a_title) | |
set title | |
getTitle () | |
get title | |
getPresentationTitle () | |
get title for presentation. | |
setSubtitle ($a_subtitle) | |
set subtitle Used for automatic generated appointments. | |
getSubtitle () | |
get subtitle | |
setDescription ($a_description) | |
set description | |
getDescription () | |
get description | |
setLocation ($a_location) | |
set location | |
getLocation () | |
get location | |
setFurtherInformations ($a_informations) | |
set further informations | |
getFurtherInformations () | |
get further informations | |
setFullday ($a_fullday) | |
set fullday event Fullday events do not change their time in different timezones. | |
isFullday () | |
is fullday | |
isAutoGenerated () | |
is auto generated | |
setAutoGenerated ($a_status) | |
set auto generated | |
isMilestone () | |
is milestone | |
setMilestone ($a_status) | |
set milestone | |
setCompletion ($a_completion) | |
Set Completion. | |
getCompletion () | |
Get Completion. | |
setContextId ($a_context_id) | |
set context id | |
getContextId () | |
get context id | |
setTranslationType ($a_type) | |
public | |
getTranslationType () | |
get translation type | |
update () | |
update | |
save () | |
save one entry | |
delete () | |
delete | |
validate () | |
validate | |
writeResponsibleUsers ($a_users) | |
Write users responsible for a milestone. | |
readResponsibleUsers () | |
Read responsible users. |
Static Public Member Functions | |
static | _delete ($a_entry_id) |
delete entry |
Protected Member Functions | |
read () | |
protected |
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 | |
$translation_type = IL_CAL_TRANSLATION_NONE | |
$is_milestone = false | |
$completion = 0 |
ilCalendarEntry::__construct | ( | $a_id = 0 | ) |
|
static |
delete entry
public
Definition at line 70 of file class.ilCalendarEntry.php.
References $ilDB, $query, and $res.
Referenced by ilCalendarCategory\delete(), delete(), and ilCalendarAppEventListener\deleteAppointments().
ilCalendarEntry::delete | ( | ) |
delete
public
Definition at line 518 of file class.ilCalendarEntry.php.
References $ilDB, $query, $res, _delete(), and getEntryId().
ilCalendarEntry::getCompletion | ( | ) |
Get Completion.
Definition at line 387 of file class.ilCalendarEntry.php.
References $completion.
Referenced by save(), and update().
ilCalendarEntry::getContextId | ( | ) |
get context id
public
Definition at line 410 of file class.ilCalendarEntry.php.
References $context_id.
Referenced by save(), and update().
ilCalendarEntry::getDescription | ( | ) |
get description
public
Definition at line 251 of file class.ilCalendarEntry.php.
References $description.
Referenced by save(), and update().
ilCalendarEntry::getEnd | ( | ) |
get end public
Implements ilDatePeriod.
Definition at line 148 of file class.ilCalendarEntry.php.
Referenced by save(), update(), and validate().
ilCalendarEntry::getEntryId | ( | ) |
get entry id
public
Definition at line 90 of file class.ilCalendarEntry.php.
References $entry_id.
Referenced by delete(), read(), readResponsibleUsers(), update(), and writeResponsibleUsers().
ilCalendarEntry::getFurtherInformations | ( | ) |
get further informations
public
Definition at line 295 of file class.ilCalendarEntry.php.
References $further_informations.
Referenced by save(), and update().
ilCalendarEntry::getLastUpdate | ( | ) |
get last update
public
@return |
Definition at line 102 of file class.ilCalendarEntry.php.
References IL_CAL_UNIX.
ilCalendarEntry::getLocation | ( | ) |
get location
public
Definition at line 273 of file class.ilCalendarEntry.php.
References $location.
Referenced by save(), and update().
ilCalendarEntry::getPresentationTitle | ( | ) |
get title for presentation.
Special handling for auto generated appointments
public
Definition at line 193 of file class.ilCalendarEntry.php.
References $lng, $title, getSubtitle(), getTitle(), getTranslationType(), IL_CAL_TRANSLATION_NONE, ilUtil\shortenText(), and ilUtil\shortenWords().
ilCalendarEntry::getStart | ( | ) |
get start
public
Implements ilDatePeriod.
Definition at line 126 of file class.ilCalendarEntry.php.
Referenced by save(), update(), and validate().
ilCalendarEntry::getSubtitle | ( | ) |
get subtitle
public
Definition at line 229 of file class.ilCalendarEntry.php.
References $subtitle.
Referenced by getPresentationTitle(), save(), and update().
ilCalendarEntry::getTitle | ( | ) |
get title
public
Definition at line 181 of file class.ilCalendarEntry.php.
References $title.
Referenced by getPresentationTitle(), save(), update(), and validate().
ilCalendarEntry::getTranslationType | ( | ) |
get translation type
public
Definition at line 433 of file class.ilCalendarEntry.php.
References $translation_type.
Referenced by getPresentationTitle(), save(), and update().
ilCalendarEntry::isAutoGenerated | ( | ) |
is auto generated
public
@return |
Definition at line 331 of file class.ilCalendarEntry.php.
References $is_auto_generated.
Referenced by save(), and update().
ilCalendarEntry::isFullday | ( | ) |
is fullday
public
Implements ilDatePeriod.
Definition at line 319 of file class.ilCalendarEntry.php.
References $fullday.
Referenced by read(), save(), and update().
ilCalendarEntry::isMilestone | ( | ) |
is milestone
public
@return |
Definition at line 355 of file class.ilCalendarEntry.php.
References $is_milestone.
Referenced by save(), and update().
|
protected |
protected
Definition at line 564 of file class.ilCalendarEntry.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getEntryId(), IL_CAL_DATETIME, isFullday(), setAutoGenerated(), setCompletion(), setContextId(), setDescription(), setFullday(), setFurtherInformations(), setLastUpdate(), setLocation(), setMilestone(), setSubtitle(), setTitle(), and setTranslationType().
Referenced by __construct().
ilCalendarEntry::readResponsibleUsers | ( | ) |
Read responsible users.
Definition at line 625 of file class.ilCalendarEntry.php.
References $ilDB, $n, ilObjUser\_lookupLogin(), ilObjUser\_lookupName(), and getEntryId().
ilCalendarEntry::save | ( | ) |
save one entry
public
Definition at line 479 of file class.ilCalendarEntry.php.
References $ilDB, $query, $res, getCompletion(), getContextId(), getDescription(), getEnd(), getFurtherInformations(), getLocation(), getStart(), getSubtitle(), getTitle(), getTranslationType(), IL_CAL_DATETIME, IL_CAL_TIMESTAMP, IL_CAL_UNIX, isAutoGenerated(), isFullday(), isMilestone(), and ilTimeZone\UTC.
ilCalendarEntry::setAutoGenerated | ( | $a_status | ) |
set auto generated
public
@return |
Definition at line 343 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setCompletion | ( | $a_completion | ) |
Set Completion.
int | $a_completion | Completion |
Definition at line 377 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setContextId | ( | $a_context_id | ) |
set context id
public
int | context id |
Definition at line 399 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setDescription | ( | $a_description | ) |
set description
public
string | description |
Definition at line 241 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setEnd | ( | $a_end | ) |
set end public
Definition at line 158 of file class.ilCalendarEntry.php.
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 309 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setFurtherInformations | ( | $a_informations | ) |
set further informations
public
string | further informations |
Definition at line 285 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setLastUpdate | ( | $a_date | ) |
set last update
public
@return |
Definition at line 114 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setLocation | ( | $a_location | ) |
set location
public
string | location |
Definition at line 263 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setMilestone | ( | $a_status | ) |
set milestone
public
@return |
Definition at line 367 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setStart | ( | ilDateTime | $a_start | ) |
public
@return |
Definition at line 138 of file class.ilCalendarEntry.php.
ilCalendarEntry::setSubtitle | ( | $a_subtitle | ) |
set subtitle Used for automatic generated appointments.
Will be appended to the title.
public
string | subtitle |
Definition at line 218 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setTitle | ( | $a_title | ) |
set title
public
string | title |
Definition at line 170 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::setTranslationType | ( | $a_type | ) |
public
@return |
Definition at line 422 of file class.ilCalendarEntry.php.
Referenced by read().
ilCalendarEntry::update | ( | ) |
update
public
Definition at line 444 of file class.ilCalendarEntry.php.
References $ilDB, $query, $res, getCompletion(), getContextId(), getDescription(), getEnd(), getEntryId(), getFurtherInformations(), getLocation(), getStart(), getSubtitle(), getTitle(), getTranslationType(), IL_CAL_DATETIME, IL_CAL_TIMESTAMP, IL_CAL_UNIX, isAutoGenerated(), isFullday(), isMilestone(), and ilTimeZone\UTC.
ilCalendarEntry::validate | ( | ) |
validate
public
Definition at line 538 of file class.ilCalendarEntry.php.
References $ilErr, $lng, $success, ilDateTime\_before(), getEnd(), getStart(), and getTitle().
ilCalendarEntry::writeResponsibleUsers | ( | $a_users | ) |
Write users responsible for a milestone.
Definition at line 602 of file class.ilCalendarEntry.php.
References $ilDB, and getEntryId().
|
protected |
Definition at line 40 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 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.
|
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 39 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 33 of file class.ilCalendarEntry.php.
|
protected |
Definition at line 29 of file class.ilCalendarEntry.php.
Referenced by getSubtitle().
|
protected |
Definition at line 28 of file class.ilCalendarEntry.php.
Referenced by getPresentationTitle(), and getTitle().
|
protected |
Definition at line 38 of file class.ilCalendarEntry.php.
Referenced by getTranslationType().