|
ILIAS
release_8 Revision v8.24
|
class for calendar categories More...
Collaboration diagram for ilCalendarCategories:Public Member Functions | |
| __construct (int $a_usr_id=0) | |
| Singleton instance. More... | |
| setCHUserId (int $a_user_id) | |
| Set ch user id. More... | |
| getCHUserId () | |
| getMode () | |
| getTargetRefId () | |
| setSourceRefId (int $a_val) | |
| getsourcerefid () | |
| initialize (int $a_mode, int $a_source_ref_id=0, bool $a_use_cache=false, int $a_cat_id=0) | |
| initialize visible categories More... | |
| getCategoryInfo (int $a_cat_id) | |
| getCategoriesInfo () | |
| getCategories (bool $a_include_subitem_calendars=false) | |
| getSubitemCategories (int $a_cat_id) | |
| prepareCategoriesOfUserForSelection () | |
| getNotificationCalendars () | |
| Get all calendars that allow send of notifications (Editable and course group calendars) More... | |
| isEditable (int $a_cat_id) | |
| check if category is editable More... | |
| isVisible ($a_cat_id) | |
| check if category is visible More... | |
| readSingleCalendar (int $a_cat_id) | |
| readAllConsultationHoursCalendarOfContainer (int $a_container_ref_id) | |
| Read personal consultation hours calendar of all tutors for a container. More... | |
| readConsultationHoursCalendar (?int $a_target_ref_id=null, int $a_cat_id=0) | |
| Read personal consultation hours calendar. More... | |
| readBookingCalendar (?int $user_id=null) | |
| Read booking manager calendar. More... | |
Static Public Member Functions | |
| static | _getInstance ($a_usr_id=0) |
| get singleton instance More... | |
| static | lookupRemoteCalendars () |
| static | _lookupCategoryIdByObjId (int $a_obj_id) |
| lookup category by obj_id More... | |
| static | _isOwner (int $a_usr_id, int $a_cal_id) |
| check if user is owner of a category More... | |
| static | deletePDItemsCache (int $a_usr_id) |
| Delete cache (add remove desktop item) More... | |
| static | deleteRepositoryCache (int $a_usr_id) |
| Delete cache. More... | |
| static | lookupPrivateCategories (int $a_user_id) |
| Lookup private categories of user. More... | |
Data Fields | |
| const | MODE_UNDEFINED = 0 |
| const | MODE_REPOSITORY = 2 |
| const | MODE_REMOTE_ACCESS = 3 |
| const | MODE_PERSONAL_DESKTOP_MEMBERSHIP = 4 |
| const | MODE_PERSONAL_DESKTOP_ITEMS = 5 |
| const | MODE_MANAGE = 6 |
| const | MODE_CONSULTATION = 7 |
| const | MODE_PORTFOLIO_CONSULTATION = 8 |
| const | MODE_REMOTE_SELECTED = 9 |
| const | MODE_REPOSITORY_CONTAINER_ONLY = 10 |
| const | MODE_SINGLE_CALENDAR = 11 |
Protected Member Functions | |
| sleep () | |
| Serialize categories. More... | |
| wakeup (string $a_ser) | |
| Load from serialize string. More... | |
| setMode (int $a_mode) | |
| setTargetRefId (int $a_ref_id) | |
| readPDCalendars () | |
| Read categories of user. More... | |
| readSelectedCalendar (int $a_cal_id) | |
| Read info about selected calendar. More... | |
| readSelectedItemCalendars () | |
| readReposCalendars ($a_container_only=false) | |
| Read available repository calendars. More... | |
| readPublicCalendars ($cat_ids=null) | |
| Read public calendars. More... | |
| readPrivateCalendars (?array $only_cat_ids=null) | |
| Read private calendars. More... | |
| readSelectedCategories (array $a_obj_ids, int $a_source_ref_id=0, bool $check_permissions=true) | |
| addSubitemCalendars () | |
| Add subitem calendars E.g. More... | |
| lookupRelevantTalkSeriesIds () | |
Protected Attributes | |
| ilDBInterface | $db |
| ilLogger | $logger |
| ilFavouritesDBRepository | $fav_rep |
| ilObjUser | $user |
| ilLanguage | $lng |
| ilRbacSystem | $rbacsystem |
| ilAccessHandler | $access |
| ilTree | $tree |
| int | $user_id = 0 |
| int | $mode = self::MODE_UNDEFINED |
| array | $categories = array() |
| array | $categories_info = array() |
| array | $subitem_categories = array() |
| int | $root_ref_id = 0 |
| int | $root_obj_id = 0 |
| int | $ch_user_id = 0 |
| int | $target_ref_id = 0 |
Static Protected Attributes | |
| static ilCalendarCategories | $instance = null |
class for calendar categories
Definition at line 28 of file class.ilCalendarCategories.php.
| ilCalendarCategories::__construct | ( | int | $a_usr_id = 0 | ) |
Singleton instance.
Definition at line 68 of file class.ilCalendarCategories.php.
References $DIC, ILIAS\Repository\access(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
get singleton instance
Definition at line 89 of file class.ilCalendarCategories.php.
References $instance.
Referenced by ilCalendarPresentationGUI\__construct(), ilCalendarAppointmentColors\__construct(), ilCalendarActions\__construct(), ilCalendarScheduleFilterConsultationHourInRepository\__construct(), ilCalendarSchedule\__construct(), ilCalendarScheduleFilterHidden\__construct(), ilCalendarScheduleFilterBookingPool\__construct(), ilCalendarScheduleFilterBookings\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilCalendarAppointmentGUI\distributeNotifications(), ilCalendarAppointmentGUI\edit(), ilCalendarAppointmentGUI\editResponsibleUsers(), ilPortfolioPageGUI\executeCommand(), ilCalendarScheduleFilterHidden\filterCategories(), ilAppointmentPresentationGUI\getCatInfo(), ilCalendarSchedule\getChangedEvents(), ilCalendarSchedule\getEvents(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarAgendaListGUI\getHTML(), ilCalendarRemoteAccessHandler\handleRequest(), ilCalendarBlockGUI\initCategories(), ilPDCalendarBlockGUI\initCategories(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarManageTableGUI\parse(), ilCalendarAppointmentGUI\save(), ilCalendarCategoryGUI\saveSelection(), ilCalendarMonthGUI\show(), ilCalendarCategoryGUI\showAssignedAppointments(), and ilCalendarAppointmentGUI\showInfoScreen().
Here is the caller graph for this function:
|
static |
check if user is owner of a category
Definition at line 138 of file class.ilCalendarCategories.php.
References $DIC, $ilDB, $query, $res, and ilCalendarCategory\TYPE_USR.
Referenced by ilCalendarShared\getSharedCalendarsForUser().
Here is the caller graph for this function:
|
static |
lookup category by obj_id
Definition at line 119 of file class.ilCalendarCategories.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ilCalendarCategory\TYPE_OBJ.
Referenced by ilCalendarAppEventListener\createAppointments(), and ilCalendarAppEventListener\deleteCategory().
Here is the caller graph for this function:
|
protected |
Add subitem calendars E.g.
session calendars in courses, groups
Definition at line 908 of file class.ilCalendarCategories.php.
References $query, $res, ILIAS\Repository\access(), ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Here is the call graph for this function:
|
static |
Delete cache (add remove desktop item)
Definition at line 155 of file class.ilCalendarCategories.php.
References ilCalendarCache\getInstance().
Referenced by ilFavouritesManager\add(), ilCalendarAppEventListener\handleEvent(), and ilFavouritesManager\remove().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Delete cache.
Definition at line 167 of file class.ilCalendarCategories.php.
References ilCalendarCache\getInstance().
Referenced by ilCalendarAppEventListener\handleEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarCategories::getCategories | ( | bool | $a_include_subitem_calendars = false | ) |
Definition at line 361 of file class.ilCalendarCategories.php.
| ilCalendarCategories::getCategoriesInfo | ( | ) |
Definition at line 356 of file class.ilCalendarCategories.php.
| ilCalendarCategories::getCategoryInfo | ( | int | $a_cat_id | ) |
Definition at line 340 of file class.ilCalendarCategories.php.
| ilCalendarCategories::getCHUserId | ( | ) |
Definition at line 210 of file class.ilCalendarCategories.php.
References $ch_user_id.
| ilCalendarCategories::getMode | ( | ) |
Definition at line 220 of file class.ilCalendarCategories.php.
References $mode.
| ilCalendarCategories::getNotificationCalendars | ( | ) |
Get all calendars that allow send of notifications (Editable and course group calendars)
Definition at line 410 of file class.ilCalendarCategories.php.
References ilObject\_lookupType(), ILIAS\Repository\int(), and ilCalendarCategory\TYPE_OBJ.
Here is the call graph for this function:| ilCalendarCategories::getsourcerefid | ( | ) |
Definition at line 242 of file class.ilCalendarCategories.php.
References $root_ref_id.
| ilCalendarCategories::getSubitemCategories | ( | int | $a_cat_id | ) |
Definition at line 370 of file class.ilCalendarCategories.php.
| ilCalendarCategories::getTargetRefId | ( | ) |
Definition at line 230 of file class.ilCalendarCategories.php.
References $target_ref_id.
| ilCalendarCategories::initialize | ( | int | $a_mode, |
| int | $a_source_ref_id = 0, |
||
| bool | $a_use_cache = false, |
||
| int | $a_cat_id = 0 |
||
| ) |
initialize visible categories
Definition at line 250 of file class.ilCalendarCategories.php.
Referenced by ilCalendarPresentationGUI\__construct().
Here is the caller graph for this function:| ilCalendarCategories::isEditable | ( | int | $a_cat_id | ) |
check if category is editable
Definition at line 426 of file class.ilCalendarCategories.php.
| ilCalendarCategories::isVisible | ( | $a_cat_id | ) |
check if category is visible
Definition at line 434 of file class.ilCalendarCategories.php.
|
static |
Lookup private categories of user.
Definition at line 980 of file class.ilCalendarCategories.php.
References $DIC, $ilDB, ILIAS\Repository\int(), and ilCalendarCategory\TYPE_USR.
Referenced by ilUserExporter\getXmlExportTailDependencies().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 967 of file class.ilCalendarCategories.php.
References ilObject\getId(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Definition at line 100 of file class.ilCalendarCategories.php.
References $db, $DIC, $query, $res, ilDBConstants\FETCHMODE_OBJECT, ilCalendarCategory\LTYPE_REMOTE, ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilCalendarCronRemoteReader\run().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarCategories::prepareCategoriesOfUserForSelection | ( | ) |
Definition at line 378 of file class.ilCalendarCategories.php.
References ILIAS\Repository\lng(), ilCalendarCategory\LTYPE_REMOTE, and ilCalendarCategory\TYPE_USR.
Here is the call graph for this function:| ilCalendarCategories::readAllConsultationHoursCalendarOfContainer | ( | int | $a_container_ref_id | ) |
Read personal consultation hours calendar of all tutors for a container.
Definition at line 726 of file class.ilCalendarCategories.php.
References ilCourseParticipants\_getInstanceByObjId(), ilObject\_lookupObjId(), and ilBookingEntry\lookupBookableUsersForObject().
Here is the call graph for this function:| ilCalendarCategories::readBookingCalendar | ( | ?int | $user_id = null | ) |
Read booking manager calendar.
Definition at line 822 of file class.ilCalendarCategories.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and ilCalendarCategory\TYPE_BOOK.
Here is the call graph for this function:| ilCalendarCategories::readConsultationHoursCalendar | ( | ?int | $a_target_ref_id = null, |
| int | $a_cat_id = 0 |
||
| ) |
Read personal consultation hours calendar.
Definition at line 743 of file class.ilCalendarCategories.php.
References $query, $res, ilObjUser\_lookupFullname(), ilObject\_lookupObjId(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and ilCalendarCategory\TYPE_CH.
Here is the call graph for this function:
|
protected |
Read categories of user.
Definition at line 442 of file class.ilCalendarCategories.php.
References ilParticipants\_getMembershipByType().
Here is the call graph for this function:
|
protected |
Read private calendars.
Definition at line 658 of file class.ilCalendarCategories.php.
References $id, $query, $res, ilDBConstants\FETCHMODE_OBJECT, ilCalendarSharedStatus\getAcceptedCalendars(), if, ILIAS\Repository\int(), ilCalendarCategory\LTYPE_REMOTE, ilCalendarCategory\TYPE_USR, and ILIAS\Repository\user().
Here is the call graph for this function:
|
protected |
Read public calendars.
Definition at line 620 of file class.ilCalendarCategories.php.
References $query, $res, ilCalendarSettings\_getInstance(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), ilCalendarCategory\LTYPE_REMOTE, and ilCalendarCategory\TYPE_GLOBAL.
Here is the call graph for this function:
|
protected |
Read available repository calendars.
Definition at line 527 of file class.ilCalendarCategories.php.
References $GLOBALS, $res, ilCalendarSettings\_getInstance(), ilParticipants\_getMembershipByType(), ilObject\_lookupType(), ILIAS\Repository\access(), ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
Read info about selected calendar.
Definition at line 463 of file class.ilCalendarCategories.php.
References ilCalendarCategory\TYPE_OBJ.
|
protected |
Definition at line 848 of file class.ilCalendarCategories.php.
References $query, $ref_id, $res, ILIAS\LTI\ToolProvider\$settings, ilObject\_getAllReferences(), ilCalendarSettings\_getInstance(), ilObject\_lookupTitle(), ilObject\_lookupType(), ILIAS\Repository\access(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and ilCalendarCategory\TYPE_OBJ.
Here is the call graph for this function:
|
protected |
Definition at line 474 of file class.ilCalendarCategories.php.
References ILIAS\Repository\access().
Here is the call graph for this function:| ilCalendarCategories::readSingleCalendar | ( | int | $a_cat_id | ) |
Definition at line 591 of file class.ilCalendarCategories.php.
References ilCalendarCategory\TYPE_BOOK, ilCalendarCategory\TYPE_CH, ilCalendarCategory\TYPE_GLOBAL, ilCalendarCategory\TYPE_OBJ, and ilCalendarCategory\TYPE_USR.
| ilCalendarCategories::setCHUserId | ( | int | $a_user_id | ) |
Set ch user id.
Definition at line 205 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 215 of file class.ilCalendarCategories.php.
| ilCalendarCategories::setSourceRefId | ( | int | $a_val | ) |
Definition at line 235 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 225 of file class.ilCalendarCategories.php.
|
finalprotected |
Serialize categories.
Definition at line 179 of file class.ilCalendarCategories.php.
|
protected |
Load from serialize string.
Definition at line 193 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 49 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 55 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 56 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 62 of file class.ilCalendarCategories.php.
Referenced by getCHUserId().
|
protected |
Definition at line 43 of file class.ilCalendarCategories.php.
Referenced by lookupRemoteCalendars().
|
protected |
Definition at line 45 of file class.ilCalendarCategories.php.
|
staticprotected |
Definition at line 42 of file class.ilCalendarCategories.php.
Referenced by _getInstance().
|
protected |
Definition at line 47 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 44 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 53 of file class.ilCalendarCategories.php.
Referenced by getMode().
|
protected |
Definition at line 48 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 60 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 59 of file class.ilCalendarCategories.php.
Referenced by getsourcerefid().
|
protected |
Definition at line 57 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 63 of file class.ilCalendarCategories.php.
Referenced by getTargetRefId().
|
protected |
Definition at line 50 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 46 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 52 of file class.ilCalendarCategories.php.
| const ilCalendarCategories::MODE_CONSULTATION = 7 |
Definition at line 36 of file class.ilCalendarCategories.php.
Referenced by ilCalendarSchedule\__construct().
| const ilCalendarCategories::MODE_MANAGE = 6 |
Definition at line 35 of file class.ilCalendarCategories.php.
| const ilCalendarCategories::MODE_PERSONAL_DESKTOP_ITEMS = 5 |
Definition at line 34 of file class.ilCalendarCategories.php.
Referenced by ilCalendarPresentationGUI\__construct(), ilCalendarSelectionBlockGUI\getCalendars(), and ilPDCalendarBlockGUI\initCategories().
| const ilCalendarCategories::MODE_PERSONAL_DESKTOP_MEMBERSHIP = 4 |
Definition at line 33 of file class.ilCalendarCategories.php.
Referenced by ilCalendarPresentationGUI\__construct(), ilCalendarSchedule\__construct(), ilCalendarSelectionBlockGUI\getCalendars(), and ilPDCalendarBlockGUI\initCategories().
| const ilCalendarCategories::MODE_PORTFOLIO_CONSULTATION = 8 |
Definition at line 37 of file class.ilCalendarCategories.php.
Referenced by ilCalendarSchedule\__construct(), ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilPortfolioPageGUI\executeCommand(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarScheduleFilterBookings\modifyEvent(), and ilCalendarMonthGUI\show().
| const ilCalendarCategories::MODE_REMOTE_ACCESS = 3 |
Definition at line 32 of file class.ilCalendarCategories.php.
Referenced by ilCalendarRemoteAccessHandler\handleRequest().
| const ilCalendarCategories::MODE_REMOTE_SELECTED = 9 |
Definition at line 38 of file class.ilCalendarCategories.php.
Referenced by ilCalendarRemoteAccessHandler\handleRequest().
| const ilCalendarCategories::MODE_REPOSITORY = 2 |
Definition at line 31 of file class.ilCalendarCategories.php.
Referenced by ilCalendarPresentationGUI\__construct(), ilCalendarSchedule\__construct(), ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarBlockGUI\getHTML(), ilCalendarBlockGUI\initCategories(), and ilCalendarScheduleFilterConsultationHourInRepository\modifyEvent().
| const ilCalendarCategories::MODE_REPOSITORY_CONTAINER_ONLY = 10 |
Definition at line 39 of file class.ilCalendarCategories.php.
Referenced by ilCalendarBlockGUI\initCategories().
| const ilCalendarCategories::MODE_SINGLE_CALENDAR = 11 |
Definition at line 40 of file class.ilCalendarCategories.php.
Referenced by ilCalendarPresentationGUI\__construct().
| const ilCalendarCategories::MODE_UNDEFINED = 0 |
Definition at line 30 of file class.ilCalendarCategories.php.
Referenced by ilCalendarActions\__construct().