ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Handles events (create,update,delete) for autmatic generated calendar events from course, groups, ... More...
Static Public Member Functions | |
static | handleEvent ($a_component, $a_event, $a_parameter) |
Handle events like create, update, delete. More... | |
static | createCategory ($a_obj, $a_check_existing=false) |
Create a category for a new object (crs,grp, ...) More... | |
static | updateCategory ($a_obj) |
Create a category for a new object (crs,grp, ...) More... | |
static | createAppointments ($a_obj, $a_appointments) |
Create appointments. More... | |
static | deleteAppointments ($a_obj_id, array $a_context_ids=null) |
Delete automatic generated appointments. More... | |
static | deleteCategory ($a_obj_id) |
delete category More... | |
static | handleEvent ($a_component, $a_event, $a_parameter) |
Handle an event in a listener. More... | |
Handles events (create,update,delete) for autmatic generated calendar events from course, groups, ...
Definition at line 35 of file class.ilCalendarAppEventListener.php.
|
static |
Create appointments.
@access public
return
Definition at line 190 of file class.ilCalendarAppEventListener.php.
References $app, $DIC, ilCalendarCategories\_lookupCategoryIdByObjId(), and createCategory().
Referenced by handleEvent().
|
static |
Create a category for a new object (crs,grp, ...)
@access public
object | ilias object ('crs','grp',...) |
Definition at line 140 of file class.ilCalendarAppEventListener.php.
References $DIC, $lng, ilCalendarCategory\_getInstanceByObjId(), ilCalendarAppointmentColors\_getRandomColorByType(), ilCalendarCategory\TYPE_OBJ, and updateCategory().
Referenced by createAppointments(), and handleEvent().
|
static |
Delete automatic generated appointments.
@access public
int | obj_id |
array | context ids |
Definition at line 234 of file class.ilCalendarAppEventListener.php.
References ilCalendarEntry\_delete(), ilCalendarCategoryAssignments\_deleteByAppointmentId(), and ilCalendarCategoryAssignments\_getAutoGeneratedAppointmentsByObjId().
Referenced by handleEvent().
|
static |
delete category
@access public
return
Definition at line 261 of file class.ilCalendarAppEventListener.php.
References $DIC, and ilCalendarCategories\_lookupCategoryIdByObjId().
Referenced by handleEvent().
|
static |
Handle events like create, update, delete.
@access public
string | $a_component | component, e.g. "Modules/Forum" or "Services/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 46 of file class.ilCalendarAppEventListener.php.
References $DIC, $ilUser, createAppointments(), createCategory(), deleteAppointments(), deleteCategory(), ilCalendarCategories\deletePDItemsCache(), ilCalendarCategories\deleteRepositoryCache(), and updateCategory().
|
static |
Create a category for a new object (crs,grp, ...)
@access public
object | ilias object ('crs','grp',...) |
Definition at line 170 of file class.ilCalendarAppEventListener.php.
References ilCalendarCategory\_getInstanceByObjId().
Referenced by createCategory(), and handleEvent().