ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
class for calendar categories More...
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().
|
static |
get singleton instance
Definition at line 89 of file class.ilCalendarCategories.php.
Referenced by ilCalendarScheduleFilterConsultationHourInRepository\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarScheduleFilterHidden\__construct(), ilCalendarScheduleFilterBookingPool\__construct(), ilCalendarScheduleFilterBookings\__construct(), ilCalendarActions\__construct(), ilCalendarSchedule\__construct(), ilCalendarPresentationGUI\__construct(), ilCalendarAppointmentColors\__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(), ilPDCalendarBlockGUI\initCategories(), ilCalendarBlockGUI\initCategories(), ilCalendarAppointmentGUI\initForm(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarManageTableGUI\parse(), ilPortfolioPageGUI\renderConsultationHours(), ilCalendarCategoryGUI\saveSelection(), ilCalendarMonthGUI\show(), ilCalendarCategoryGUI\showAssignedAppointments(), and ilCalendarAppointmentGUI\showInfoScreen().
|
static |
check if user is owner of a category
Definition at line 138 of file class.ilCalendarCategories.php.
References $DIC, $ilDB, $res, and ilCalendarCategory\TYPE_USR.
Referenced by ilCalendarShared\getSharedCalendarsForUser().
|
static |
lookup category by obj_id
Definition at line 119 of file class.ilCalendarCategories.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ilCalendarCategory\TYPE_OBJ.
Referenced by ilCalendarAppEventListener\createAppointments(), ilCalendarAppEventListener\deleteCategory(), and ilCalendarAppointmentGUI\initForm().
|
protected |
Add subitem calendars E.g.
session calendars in courses, groups
Definition at line 908 of file class.ilCalendarCategories.php.
References $res, ILIAS\Repository\access(), ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by readPDCalendars(), readReposCalendars(), readSelectedCalendar(), and readSelectedItemCalendars().
|
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().
|
static |
Delete cache.
Definition at line 167 of file class.ilCalendarCategories.php.
References ilCalendarCache\getInstance().
Referenced by ilCalendarAppEventListener\handleEvent().
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.
Referenced by readAllConsultationHoursCalendarOfContainer(), and readConsultationHoursCalendar().
ilCalendarCategories::getMode | ( | ) |
Definition at line 220 of file class.ilCalendarCategories.php.
References $mode.
Referenced by initialize().
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.
ilCalendarCategories::getsourcerefid | ( | ) |
ilCalendarCategories::getSubitemCategories | ( | int | $a_cat_id | ) |
Definition at line 370 of file class.ilCalendarCategories.php.
ilCalendarCategories::getTargetRefId | ( | ) |
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.
References ilCalendarUserSettings\_getInstance(), ilObject\_lookupObjId(), ilCalendarUserSettings\CAL_SELECTION_MEMBERSHIP, ilCalendarCache\getInstance(), getMode(), readConsultationHoursCalendar(), readPDCalendars(), readReposCalendars(), readSelectedCalendar(), readSelectedItemCalendars(), readSingleCalendar(), setMode(), setTargetRefId(), sleep(), and wakeup().
Referenced by ilCalendarPresentationGUI\__construct(), and ilCalendarSelectionBlockGUI\getCalendars().
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().
|
protected |
Definition at line 967 of file class.ilCalendarCategories.php.
References ilObject\getId(), and ILIAS\Repository\user().
Referenced by readPDCalendars(), readReposCalendars(), and readSelectedItemCalendars().
|
static |
Definition at line 100 of file class.ilCalendarCategories.php.
References $DIC, $res, ilDBConstants\FETCHMODE_OBJECT, ilCalendarCategory\LTYPE_REMOTE, ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilCalendarCronRemoteReader\run().
ilCalendarCategories::prepareCategoriesOfUserForSelection | ( | ) |
Definition at line 378 of file class.ilCalendarCategories.php.
References ILIAS\Repository\lng(), ilCalendarCategory\LTYPE_REMOTE, and ilCalendarCategory\TYPE_USR.
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(), getCHUserId(), ilBookingEntry\lookupBookableUsersForObject(), readConsultationHoursCalendar(), and setCHUserId().
Referenced by readReposCalendars().
ilCalendarCategories::readBookingCalendar | ( | ?int | $user_id = null | ) |
Read booking manager calendar.
Definition at line 822 of file class.ilCalendarCategories.php.
References $res, $user_id, ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and ilCalendarCategory\TYPE_BOOK.
Referenced by readPDCalendars(), readReposCalendars(), readSelectedItemCalendars(), and readSingleCalendar().
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 $res, ilObjUser\_lookupFullname(), ilObject\_lookupObjId(), ilDBConstants\FETCHMODE_OBJECT, getCHUserId(), ILIAS\Repository\int(), setCHUserId(), and ilCalendarCategory\TYPE_CH.
Referenced by initialize(), readAllConsultationHoursCalendarOfContainer(), readPDCalendars(), readSelectedItemCalendars(), and readSingleCalendar().
|
protected |
Read categories of user.
Definition at line 442 of file class.ilCalendarCategories.php.
References ilParticipants\_getMembershipByType(), addSubitemCalendars(), lookupRelevantTalkSeriesIds(), readBookingCalendar(), readConsultationHoursCalendar(), readPrivateCalendars(), readPublicCalendars(), and readSelectedCategories().
Referenced by initialize().
|
protected |
Read private calendars.
Definition at line 658 of file class.ilCalendarCategories.php.
References $id, $res, ilDBConstants\FETCHMODE_OBJECT, ilCalendarSharedStatus\getAcceptedCalendars(), if, ILIAS\Repository\int(), ilCalendarCategory\LTYPE_REMOTE, ilCalendarCategory\TYPE_USR, and ILIAS\Repository\user().
Referenced by readPDCalendars(), readReposCalendars(), readSelectedItemCalendars(), and readSingleCalendar().
|
protected |
Read public calendars.
Definition at line 620 of file class.ilCalendarCategories.php.
References $res, ilCalendarSettings\_getInstance(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), ilCalendarCategory\LTYPE_REMOTE, and ilCalendarCategory\TYPE_GLOBAL.
Referenced by readPDCalendars(), readReposCalendars(), readSelectedItemCalendars(), and readSingleCalendar().
|
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(), addSubitemCalendars(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), lookupRelevantTalkSeriesIds(), readAllConsultationHoursCalendarOfContainer(), readBookingCalendar(), readPrivateCalendars(), readPublicCalendars(), and readSelectedCategories().
Referenced by initialize().
|
protected |
Read info about selected calendar.
Definition at line 463 of file class.ilCalendarCategories.php.
References addSubitemCalendars(), readSelectedCategories(), and ilCalendarCategory\TYPE_OBJ.
Referenced by initialize(), and readSingleCalendar().
|
protected |
Definition at line 848 of file class.ilCalendarCategories.php.
References $ref_id, $res, ilObject\_getAllReferences(), ilCalendarSettings\_getInstance(), ilObject\_lookupTitle(), ilObject\_lookupType(), ILIAS\Repository\access(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and ilCalendarCategory\TYPE_OBJ.
Referenced by readPDCalendars(), readReposCalendars(), readSelectedCalendar(), and readSelectedItemCalendars().
|
protected |
Definition at line 474 of file class.ilCalendarCategories.php.
References ILIAS\Repository\access(), addSubitemCalendars(), lookupRelevantTalkSeriesIds(), readBookingCalendar(), readConsultationHoursCalendar(), readPrivateCalendars(), readPublicCalendars(), and readSelectedCategories().
Referenced by initialize().
ilCalendarCategories::readSingleCalendar | ( | int | $a_cat_id | ) |
Definition at line 591 of file class.ilCalendarCategories.php.
References readBookingCalendar(), readConsultationHoursCalendar(), readPrivateCalendars(), readPublicCalendars(), readSelectedCalendar(), ilCalendarCategory\TYPE_BOOK, ilCalendarCategory\TYPE_CH, ilCalendarCategory\TYPE_GLOBAL, ilCalendarCategory\TYPE_OBJ, and ilCalendarCategory\TYPE_USR.
Referenced by initialize().
ilCalendarCategories::setCHUserId | ( | int | $a_user_id | ) |
Set ch user id.
Definition at line 205 of file class.ilCalendarCategories.php.
Referenced by readAllConsultationHoursCalendarOfContainer(), and readConsultationHoursCalendar().
|
protected |
Definition at line 215 of file class.ilCalendarCategories.php.
Referenced by initialize().
ilCalendarCategories::setSourceRefId | ( | int | $a_val | ) |
Definition at line 235 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 225 of file class.ilCalendarCategories.php.
Referenced by initialize().
|
finalprotected |
Serialize categories.
Definition at line 179 of file class.ilCalendarCategories.php.
Referenced by initialize().
|
protected |
Load from serialize string.
Definition at line 193 of file class.ilCalendarCategories.php.
Referenced by initialize().
|
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.
|
protected |
Definition at line 45 of file class.ilCalendarCategories.php.
|
staticprotected |
Definition at line 42 of file class.ilCalendarCategories.php.
|
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.
Referenced by readBookingCalendar().
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 ilCalendarSchedule\__construct(), ilCalendarPresentationGUI\__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(), ilPortfolioPageGUI\renderConsultationHours(), 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 ilCalendarSchedule\__construct(), ilCalendarPresentationGUI\__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().