ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
class for calendar categories More...
Public Member Functions | |
setCHUserId ($a_user_id) | |
Set ch user id. More... | |
getCHUserId () | |
Get ch user id. More... | |
getMode () | |
getTargetRefId () | |
initialize ($a_mode, $a_source_ref_id=0, $a_use_cache=false) | |
initialize visible categories More... | |
getCategoryInfo ($a_cat_id) | |
public More... | |
getCategoriesInfo () | |
get categories More... | |
getCategories ($a_include_subitem_calendars=false) | |
get categories More... | |
getSubitemCategories ($a_cat_id) | |
get subitem categories for a specific category More... | |
prepareCategoriesOfUserForSelection () | |
prepare categories of users for selection More... | |
getNotificationCalendars () | |
Get all calendars that allow send of notifications (Editable and course group calendars) More... | |
isEditable ($a_cat_id) | |
check if category is editable More... | |
isVisible ($a_cat_id) | |
check if category is visible More... | |
readConsultationHoursCalendar ($a_target_ref_id=NULL) | |
Read personal consultation hours calendar. More... | |
readBookingCalendar ($user_id=NULL) | |
Read booking manager calendar. More... | |
Static Public Member Functions | |
static | _getInstance ($a_usr_id=0) |
get singleton instance More... | |
static | _lookupCategoryIdByObjId ($a_obj_id) |
lookup category by obj_id More... | |
static | _isOwner ($a_usr_id, $a_cal_id) |
check if user is owner of a category More... | |
static | deletePDItemsCache ($a_usr_id) |
Delete cache (add remove desktop item) More... | |
static | deleteRepositoryCache ($a_usr_id) |
Delete cache. More... | |
static | lookupPrivateCategories ($a_user_id) |
Lookup private categories of user. More... | |
Data Fields | |
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 |
Protected Member Functions | |
__construct ($a_usr_id=0) | |
Singleton instance. More... | |
sleep () | |
Serialize categories. More... | |
wakeup ($a_ser) | |
Load from serialize string. More... | |
setMode ($a_mode) | |
setTargetRefId ($a_ref_id) | |
readPDCalendars () | |
Read categories of user. More... | |
readSelectedCalendar ($a_cal_id) | |
Read info about selected calendar. More... | |
readSelectedItemCalendars () | |
Read categories of selected items. More... | |
readReposCalendars () | |
Read available repository calendars. More... | |
readPublicCalendars () | |
Read public calendars. More... | |
readPrivateCalendars () | |
Read private calendars. More... | |
readSelectedCategories ($a_obj_ids) | |
read selected categories More... | |
addSubitemCalendars () | |
Add subitem calendars E.g. More... | |
Protected Attributes | |
$db | |
$user_id | |
$mode = 0 | |
$categories = array() | |
$categories_info = array() | |
$subitem_categories = array() | |
$root_ref_id = 0 | |
$root_obj_id = 0 | |
$ch_user_id = 0 | |
$target_ref_id = 0 | |
$logger = null | |
ilLogger More... | |
Static Protected Attributes | |
static | $instance = null |
class for calendar categories
Definition at line 37 of file class.ilCalendarCategories.php.
|
protected |
Singleton instance.
protected
int | $a_usr_id | user id |
Definition at line 79 of file class.ilCalendarCategories.php.
References $GLOBALS, $ilDB, and $ilUser.
|
static |
get singleton instance
public
int | $a_usr_id | user id |
Definition at line 101 of file class.ilCalendarCategories.php.
Referenced by ilCalendarScheduleFilterBookings\__construct(), ilCalendarAppointmentsTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilCalendarPresentationGUI\__construct(), ilCalendarSchedule\__construct(), ilCalendarAppointmentColors\__construct(), ilCalendarAppointmentGUI\distributeNotifications(), ilCalendarAppointmentGUI\edit(), ilCalendarAppointmentGUI\editResponsibleUsers(), ilCalendarScheduleFilterHidden\filterCategories(), ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarSchedule\getChangedEvents(), ilCalendarSchedule\getEvents(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarRemoteAccessHandler\handleRequest(), ilPDCalendarBlockGUI\initCategories(), ilCalendarBlockGUI\initCategories(), ilCalendarAppointmentGUI\initForm(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategoryTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilPortfolioPageGUI\renderConsultationHours(), ilCalendarAppointmentGUI\save(), ilCalendarCategoryGUI\saveSelection(), ilCalendarMonthGUI\show(), ilCalendarCategoryGUI\showAssignedAppointments(), ilCalendarAppointmentGUI\showInfoScreen(), and ilCalendarPresentationGUI\synchroniseExternalCalendars().
|
static |
check if user is owner of a category
public
int | usr_id |
int | cal_id |
Definition at line 144 of file class.ilCalendarCategories.php.
References $ilDB, $query, $res, and ilCalendarCategory\TYPE_USR.
Referenced by ilCalendarShared\getSharedCalendarsForUser().
|
static |
lookup category by obj_id
public
int | obj_id |
Definition at line 118 of file class.ilCalendarCategories.php.
References $ilDB, $query, $res, $row, 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 932 of file class.ilCalendarCategories.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by readPDCalendars(), readSelectedCalendar(), and readSelectedItemCalendars().
|
static |
Delete cache (add remove desktop item)
object | $a_usr_id |
Definition at line 161 of file class.ilCalendarCategories.php.
References ilCalendarCache\getInstance().
Referenced by ilObjUser\_addDesktopItem(), ilObjUser\_dropDesktopItem(), and ilCalendarAppEventListener\handleEvent().
|
static |
Delete cache.
object | $a_usr_id |
Definition at line 175 of file class.ilCalendarCategories.php.
References ilCalendarCache\getInstance().
Referenced by ilCalendarAppEventListener\handleEvent().
ilCalendarCategories::getCategories | ( | $a_include_subitem_calendars = false | ) |
get categories
$a_include_subitems | include subitem calendars public |
Definition at line 386 of file class.ilCalendarCategories.php.
References array.
ilCalendarCategories::getCategoriesInfo | ( | ) |
get categories
public
Definition at line 375 of file class.ilCalendarCategories.php.
References array.
ilCalendarCategories::getCategoryInfo | ( | $a_cat_id | ) |
ilCalendarCategories::getCHUserId | ( | ) |
Get ch user id.
Definition at line 229 of file class.ilCalendarCategories.php.
References $ch_user_id.
Referenced by readConsultationHoursCalendar().
ilCalendarCategories::getMode | ( | ) |
Definition at line 239 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 453 of file class.ilCalendarCategories.php.
References $info, ilObject\_lookupType(), array, and ilCalendarCategory\TYPE_OBJ.
ilCalendarCategories::getSubitemCategories | ( | $a_cat_id | ) |
get subitem categories for a specific category
int | $a_category_id | Id of category in question |
Definition at line 402 of file class.ilCalendarCategories.php.
References array.
ilCalendarCategories::getTargetRefId | ( | ) |
ilCalendarCategories::initialize | ( | $a_mode, | |
$a_source_ref_id = 0 , |
|||
$a_use_cache = false |
|||
) |
initialize visible categories
public
int | mode |
int | ref_id of root node |
Definition at line 262 of file class.ilCalendarCategories.php.
References $user_id, ilCalendarUserSettings\_getInstance(), ilObject\_lookupObjId(), ilCalendarUserSettings\CAL_SELECTION_MEMBERSHIP, ilCalendarCache\getInstance(), getMode(), readConsultationHoursCalendar(), readPDCalendars(), readReposCalendars(), readSelectedCalendar(), readSelectedItemCalendars(), setMode(), setTargetRefId(), and wakeup().
ilCalendarCategories::isEditable | ( | $a_cat_id | ) |
check if category is editable
public
int | $a_cat_id | category id |
Definition at line 476 of file class.ilCalendarCategories.php.
ilCalendarCategories::isVisible | ( | $a_cat_id | ) |
check if category is visible
public
int | $a_cat_id | category id |
Definition at line 488 of file class.ilCalendarCategories.php.
References array.
|
static |
Lookup private categories of user.
Definition at line 995 of file class.ilCalendarCategories.php.
References $ilDB, array, and ilCalendarCategory\TYPE_USR.
Referenced by ilUserExporter\getXmlExportTailDependencies().
ilCalendarCategories::prepareCategoriesOfUserForSelection | ( | ) |
prepare categories of users for selection
public
int | user id |
Definition at line 419 of file class.ilCalendarCategories.php.
References $info, $lng, array, and ilCalendarCategory\TYPE_USR.
ilCalendarCategories::readBookingCalendar | ( | $user_id = NULL | ) |
Read booking manager calendar.
int | $user_id |
Definition at line 831 of file class.ilCalendarCategories.php.
References $ilDB, $query, $res, $row, $user_id, ilDBConstants\FETCHMODE_OBJECT, and ilCalendarCategory\TYPE_BOOK.
Referenced by readPDCalendars(), and readSelectedItemCalendars().
ilCalendarCategories::readConsultationHoursCalendar | ( | $a_target_ref_id = NULL | ) |
Read personal consultation hours calendar.
int | $user_id |
Definition at line 756 of file class.ilCalendarCategories.php.
References $categories, $ilDB, $query, $res, $row, ilObject\_lookupObjId(), array, ilDBConstants\FETCHMODE_OBJECT, getCHUserId(), setCHUserId(), and ilCalendarCategory\TYPE_CH.
Referenced by initialize(), readPDCalendars(), readReposCalendars(), and readSelectedItemCalendars().
|
protected |
Read categories of user.
protected
Definition at line 504 of file class.ilCalendarCategories.php.
References ilParticipants\_getMembershipByType(), addSubitemCalendars(), readBookingCalendar(), readConsultationHoursCalendar(), readPrivateCalendars(), readPublicCalendars(), and readSelectedCategories().
Referenced by initialize().
|
protected |
Read private calendars.
protected
Definition at line 688 of file class.ilCalendarCategories.php.
References $ilDB, $ilUser, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, ilCalendarSharedStatus\getAcceptedCalendars(), ilCalendarCategory\LTYPE_REMOTE, and ilCalendarCategory\TYPE_USR.
Referenced by readPDCalendars(), readReposCalendars(), and readSelectedItemCalendars().
|
protected |
Read public calendars.
protected
Definition at line 656 of file class.ilCalendarCategories.php.
References $query, $res, $row, ilCalendarSettings\_getInstance(), ilDBConstants\FETCHMODE_OBJECT, ilCalendarCategory\LTYPE_REMOTE, and ilCalendarCategory\TYPE_GLOBAL.
Referenced by readPDCalendars(), readReposCalendars(), and readSelectedItemCalendars().
|
protected |
Read available repository calendars.
protected
Definition at line 601 of file class.ilCalendarCategories.php.
References $GLOBALS, $ilDB, $res, $row, ilCalendarSettings\_getInstance(), ilObject\_lookupType(), array, ilDBConstants\FETCHMODE_OBJECT, readConsultationHoursCalendar(), readPrivateCalendars(), readPublicCalendars(), and readSelectedCategories().
Referenced by initialize().
|
protected |
Read info about selected calendar.
type | $a_cal_id |
Definition at line 525 of file class.ilCalendarCategories.php.
References addSubitemCalendars(), array, readSelectedCategories(), and ilCalendarCategory\TYPE_OBJ.
Referenced by initialize().
|
protected |
read selected categories
protected
Definition at line 864 of file class.ilCalendarCategories.php.
References $ilDB, $query, $ref_id, $res, $row, ilObject\_getAllReferences(), ilCalendarSettings\_getInstance(), ilObject\_lookupType(), ilDBConstants\FETCHMODE_OBJECT, and ilCalendarCategory\TYPE_OBJ.
Referenced by readPDCalendars(), readReposCalendars(), readSelectedCalendar(), and readSelectedItemCalendars().
|
protected |
Read categories of selected items.
Definition at line 546 of file class.ilCalendarCategories.php.
References $ilUser, ilObjUser\_lookupDesktopItems(), addSubitemCalendars(), array, readBookingCalendar(), readConsultationHoursCalendar(), readPrivateCalendars(), readPublicCalendars(), and readSelectedCategories().
Referenced by initialize().
ilCalendarCategories::setCHUserId | ( | $a_user_id | ) |
Set ch user id.
int | $a_user_id |
Definition at line 219 of file class.ilCalendarCategories.php.
Referenced by readConsultationHoursCalendar().
|
protected |
Definition at line 234 of file class.ilCalendarCategories.php.
Referenced by initialize().
|
protected |
Definition at line 244 of file class.ilCalendarCategories.php.
Referenced by initialize().
|
protected |
Serialize categories.
Definition at line 190 of file class.ilCalendarCategories.php.
References array.
|
protected |
Load from serialize string.
string | serialize categories |
Definition at line 206 of file class.ilCalendarCategories.php.
References $info.
Referenced by initialize().
|
protected |
Definition at line 56 of file class.ilCalendarCategories.php.
Referenced by readConsultationHoursCalendar().
|
protected |
Definition at line 57 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 64 of file class.ilCalendarCategories.php.
Referenced by getCHUserId().
|
protected |
Definition at line 50 of file class.ilCalendarCategories.php.
|
staticprotected |
Definition at line 48 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 70 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 54 of file class.ilCalendarCategories.php.
Referenced by getMode().
|
protected |
Definition at line 61 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 60 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 58 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 65 of file class.ilCalendarCategories.php.
Referenced by getTargetRefId().
|
protected |
Definition at line 52 of file class.ilCalendarCategories.php.
Referenced by initialize(), and readBookingCalendar().
const ilCalendarCategories::MODE_CONSULTATION = 7 |
Definition at line 44 of file class.ilCalendarCategories.php.
Referenced by ilCalendarSchedule\__construct(), and ilCalendarBlockGUI\initCategories().
const ilCalendarCategories::MODE_MANAGE = 6 |
Definition at line 43 of file class.ilCalendarCategories.php.
Referenced by ilCalendarManageTableGUI\parse().
const ilCalendarCategories::MODE_PERSONAL_DESKTOP_ITEMS = 5 |
Definition at line 42 of file class.ilCalendarCategories.php.
Referenced by ilCalendarPresentationGUI\__construct(), ilCalendarBlockGUI\getHTML(), ilPDCalendarBlockGUI\initCategories(), and ilCalendarBlockGUI\showCalendarSubscription().
const ilCalendarCategories::MODE_PERSONAL_DESKTOP_MEMBERSHIP = 4 |
Definition at line 41 of file class.ilCalendarCategories.php.
Referenced by ilCalendarPresentationGUI\__construct(), ilCalendarBlockGUI\getHTML(), ilPDCalendarBlockGUI\initCategories(), and ilCalendarBlockGUI\showCalendarSubscription().
const ilCalendarCategories::MODE_PORTFOLIO_CONSULTATION = 8 |
Definition at line 45 of file class.ilCalendarCategories.php.
Referenced by ilCalendarSchedule\__construct(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarScheduleFilterBookings\modifyEvent(), ilPortfolioPageGUI\renderConsultationHours(), and ilCalendarMonthGUI\show().
const ilCalendarCategories::MODE_REMOTE_ACCESS = 3 |
Definition at line 40 of file class.ilCalendarCategories.php.
Referenced by ilCalendarRemoteAccessHandler\handleRequest().
const ilCalendarCategories::MODE_REMOTE_SELECTED = 9 |
Definition at line 46 of file class.ilCalendarCategories.php.
Referenced by ilCalendarRemoteAccessHandler\handleRequest().
const ilCalendarCategories::MODE_REPOSITORY = 2 |
Definition at line 39 of file class.ilCalendarCategories.php.
Referenced by ilCalendarBlockGUI\getHTML(), and ilCalendarBlockGUI\initCategories().