ILIAS
Release_4_0_x_branch Revision 61816
|
Administrate calendar appointments. More...
Public Member Functions | |
__construct (ilDate $seed, $a_appointment_id=0) | |
Constructor. | |
executeCommand () | |
Execute command. | |
editResponsibleUsers () | |
Edit responsible users. | |
showResponsibleUsersList ($a_grp_id) | |
Show responsible uses of a milestone (default set is participants of group) | |
saveMilestoneResponsibleUsers () | |
Save milestone responsibilites. |
Protected Member Functions | |
cancel () | |
cancel editing | |
initForm ($a_mode, $a_as_milestone=false) | |
init form | |
add () | |
add new appointment | |
addMilestone () | |
add milestone | |
saveMilestone () | |
save milestone | |
save ($a_as_milestone=false) | |
save appointment | |
edit () | |
edit appointment | |
showInfoScreen () | |
show info screen | |
update () | |
update | |
askDelete () | |
ask delete | |
delete () | |
delete | |
initTimeZone () | |
init timezone | |
initSeed (ilDate $seed) | |
init seed | |
initAppointment ($a_app_id=0) | |
init appointment | |
load ($a_as_milestone=false) | |
load post | |
loadRecurrenceSettings ($a_as_milestone=false) | |
load recurrence settings | |
saveRecurrenceSettings () | |
save recurrence settings | |
createDefaultCalendar () | |
Create a default calendar. |
Protected Attributes | |
$seed = null | |
$default_fulltime = true | |
$app = null | |
$rec = null | |
$timezone = null | |
$tpl | |
$lng | |
$ctrl |
Administrate calendar appointments.
Definition at line 36 of file class.ilCalendarAppointmentGUI.php.
ilCalendarAppointmentGUI::__construct | ( | ilDate | $seed, |
$a_appointment_id = 0 |
|||
) |
Constructor.
public
ilDate | seed |
Definition at line 56 of file class.ilCalendarAppointmentGUI.php.
References $ilCtrl, $lng, initAppointment(), initSeed(), and initTimeZone().
|
protected |
add new appointment
protected
Definition at line 317 of file class.ilCalendarAppointmentGUI.php.
References $tpl, and initForm().
Referenced by save().
|
protected |
add milestone
protected
Definition at line 331 of file class.ilCalendarAppointmentGUI.php.
References $tpl, and initForm().
Referenced by save().
|
protected |
ask delete
protected
Definition at line 623 of file class.ilCalendarAppointmentGUI.php.
References $tpl.
|
protected |
cancel editing
protected
@return |
Definition at line 99 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Create a default calendar.
protected
Definition at line 948 of file class.ilCalendarAppointmentGUI.php.
References $lng, ilCalendarCategory\DEFAULT_COLOR, and ilCalendarCategory\TYPE_USR.
Referenced by save(), and update().
|
protected |
delete
protected
@return |
Definition at line 648 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $app, ilCalendarCategoryAssignments\_deleteByAppointmentId(), and ilUtil\sendSuccess().
|
protected |
edit appointment
protected
@return |
Definition at line 460 of file class.ilCalendarAppointmentGUI.php.
References $ilErr, $tpl, ilCalendarCategories\_getInstance(), ilCalendarCategoryAssignments\_lookupCategory(), initForm(), and showInfoScreen().
Referenced by update().
ilCalendarAppointmentGUI::editResponsibleUsers | ( | ) |
Edit responsible users.
Definition at line 418 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarCategories\_getInstance(), ilCalendarCategoryAssignments\_lookupCategory(), and showResponsibleUsersList().
ilCalendarAppointmentGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 76 of file class.ilCalendarAppointmentGUI.php.
References $cmd, $ilSetting, and $tpl.
|
protected |
init appointment
protected
int | appointment id |
Definition at line 713 of file class.ilCalendarAppointmentGUI.php.
References $seed, $start, ilCalendarRecurrences\_getFirstRecurrence(), and IL_CAL_HOUR.
Referenced by __construct().
|
protected |
init form
protected
string | mode ('edit' | 'create') |
Definition at line 111 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_POST, $desc, $rec, $title, $tpl, $type, ilCalendarCategories\_getInstance(), ilCalendarCategories\_lookupCategoryIdByObjId(), ilObject\_lookupObjId(), ilObject\_lookupType(), elseif(), ilCalendarCategoryAssignments\getFirstAssignment(), ilYuiUtil\initDomEvent(), ilDateTimeInputGUI\setDate(), ilSelectInputGUI\setOptions(), ilDateDurationInputGUI\setStartText(), ilTextInputGUI\setValue(), ilSelectInputGUI\setValue(), ilNonEditableValueGUI\setValue(), and ilCalendarCategory\TYPE_OBJ.
Referenced by add(), addMilestone(), and edit().
|
protected |
init seed
protected
@return |
Definition at line 683 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $seed, $timezone, ilDate\get(), IL_CAL_DATE, and IL_CAL_DATETIME.
Referenced by __construct().
|
protected |
init timezone
protected
@return |
Definition at line 669 of file class.ilCalendarAppointmentGUI.php.
Referenced by __construct().
|
protected |
load post
protected
@return |
Definition at line 752 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $start, IL_CAL_DATE, IL_CAL_FKT_GETDATE, loadRecurrenceSettings(), and ilUtil\stripSlashes().
Referenced by save(), and update().
|
protected |
load recurrence settings
protected
Definition at line 819 of file class.ilCalendarAppointmentGUI.php.
References $_POST, IL_CAL_FREQ_DAILY, IL_CAL_FREQ_MONTHLY, IL_CAL_FREQ_WEEKLY, IL_CAL_FREQ_YEARLY, and ilUtil\stripSlashes().
Referenced by load().
|
protected |
save appointment
protected
Definition at line 354 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $ilErr, $type, ilCalendarCategories\_getInstance(), ilObject\_lookupType(), add(), ilCalendarCategoryAssignments\addAssignment(), addMilestone(), createDefaultCalendar(), elseif(), load(), saveRecurrenceSettings(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showResponsibleUsersList(), and ilCalendarCategory\TYPE_OBJ.
Referenced by saveMilestone().
|
protected |
save milestone
protected
Definition at line 344 of file class.ilCalendarAppointmentGUI.php.
References save().
ilCalendarAppointmentGUI::saveMilestoneResponsibleUsers | ( | ) |
|
protected |
save recurrence settings
protected
@return |
Definition at line 917 of file class.ilCalendarAppointmentGUI.php.
References $_POST.
Referenced by save(), and update().
|
protected |
show info screen
protected
Definition at line 492 of file class.ilCalendarAppointmentGUI.php.
References $desc, $tpl, $type, ilObject\_getAllReferences(), ilCalendarCategories\_getInstance(), ilLink\_getStaticLink(), ilCalendarCategoryAssignments\_lookupCategory(), ilObject\_lookupType(), ilDatePresentation\formatPeriod(), and ilCalendarCategory\TYPE_OBJ.
Referenced by edit().
ilCalendarAppointmentGUI::showResponsibleUsersList | ( | $a_grp_id | ) |
Show responsible uses of a milestone (default set is participants of group)
Definition at line 432 of file class.ilCalendarAppointmentGUI.php.
References $tpl.
Referenced by editResponsibleUsers(), and save().
|
protected |
update
protected
Definition at line 580 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $ilErr, createDefaultCalendar(), ilCalendarCategoryAssignments\deleteAssignments(), edit(), load(), saveRecurrenceSettings(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Definition at line 41 of file class.ilCalendarAppointmentGUI.php.
Referenced by delete().
|
protected |
Definition at line 47 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 39 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 46 of file class.ilCalendarAppointmentGUI.php.
Referenced by __construct(), and createDefaultCalendar().
|
protected |
Definition at line 42 of file class.ilCalendarAppointmentGUI.php.
Referenced by initForm().
|
protected |
Definition at line 38 of file class.ilCalendarAppointmentGUI.php.
Referenced by initAppointment(), and initSeed().
|
protected |
Definition at line 43 of file class.ilCalendarAppointmentGUI.php.
Referenced by initSeed().
|
protected |
Definition at line 45 of file class.ilCalendarAppointmentGUI.php.
Referenced by add(), addMilestone(), askDelete(), edit(), executeCommand(), initForm(), showInfoScreen(), and showResponsibleUsersList().