ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Handles events (create,update,delete) for autmatic generated calendar events from course, groups, ... More...
Static Public Member Functions | |
static | handleEvent (string $a_component, string $a_event, array $a_parameter) |
Handle events like create, update, delete public. More... | |
static | createCategory (ilObject $a_obj, bool $a_check_existing=false) |
Create a category for a new object (crs,grp, ...) More... | |
static | updateCategory (ilObject $a_obj) |
Update category for a object (crs,grp, ...) More... | |
static | createAppointments (ilObject $a_obj, array $a_appointments) |
Create appointments. More... | |
static | deleteAppointments (int $a_obj_id, ?array $a_context_ids=null) |
Delete automatic generated appointments. More... | |
static | deleteCategory (int $a_obj_id) |
delete category More... | |
Handles events (create,update,delete) for autmatic generated calendar events from course, groups, ...
Definition at line 27 of file class.ilCalendarAppEventListener.php.
|
static |
Create appointments.
ilObject | |
ilCalendarAppointmentTemplate[] |
Definition at line 162 of file class.ilCalendarAppEventListener.php.
References $DIC, ilCalendarCategories\_lookupCategoryIdByObjId(), ilCalendarCategoryAssignments\addAssignment(), and ilObject\getId().
|
static |
Create a category for a new object (crs,grp, ...)
Definition at line 124 of file class.ilCalendarAppEventListener.php.
References $DIC, $lng, ilCalendarCategory\_getInstanceByObjId(), ilCalendarAppointmentColors\_getRandomColorByType(), ilObject\getId(), ilObject\getTitle(), ilObject\getType(), and ilCalendarCategory\TYPE_OBJ.
|
static |
Delete automatic generated appointments.
Definition at line 197 of file class.ilCalendarAppEventListener.php.
References ilCalendarEntry\_delete(), ilCalendarCategoryAssignments\_deleteByAppointmentId(), and ilCalendarCategoryAssignments\_getAutoGeneratedAppointmentsByObjId().
|
static |
delete category
Definition at line 215 of file class.ilCalendarAppEventListener.php.
References $DIC, and ilCalendarCategories\_lookupCategoryIdByObjId().
|
static |
Handle events like create, update, delete public.
string | $a_component | component, e.g. "components/ILIAS/Forum" or "components/ILIAS/User" |
string | $a_event | event e.g. "createUser", "updateUser", "deleteUser", ... |
array | $a_parameter | parameter array (assoc), array("name" => ..., "phone_office" => ...) * |
Implements ilAppEventListener.
Definition at line 37 of file class.ilCalendarAppEventListener.php.
References $DIC, ilCalendarCategories\deletePDItemsCache(), and ilCalendarCategories\deleteRepositoryCache().
|
static |
Update category for a object (crs,grp, ...)
Definition at line 146 of file class.ilCalendarAppEventListener.php.
References ilCalendarCategory\_getInstanceByObjId(), ilObject\getId(), and ilObject\getTitle().