|
ILIAS
Release_3_10_x_branch Revision 61812
|
class for calendar categories More...
Collaboration diagram for ilCalendarCategories:Public Member Functions | |
| initialize ($a_mode, $a_source_ref_id=0) | |
| initialize visible categories | |
| getCategoryInfo ($a_cat_id) | |
| public | |
| getCategoriesInfo () | |
| get categories | |
| getCategories ($a_include_subitem_calendars=false) | |
| get categories | |
| getSubitemCategories ($a_cat_id) | |
| get subitem categories for a specific category | |
| prepareCategoriesOfUserForSelection () | |
| prepare categories of users for selection | |
| isEditable ($a_cat_id) | |
| check if category is editable | |
| isVisible ($a_cat_id) | |
| check if category is visible | |
Static Public Member Functions | |
| static | _getInstance ($a_usr_id=0) |
| get singleton instance | |
| static | _lookupCategoryIdByObjId ($a_obj_id) |
| lookup category by obj_id | |
| static | _isOwner ($a_usr_id, $a_cal_id) |
| check if user is owner of a category | |
Data Fields | |
| const | MODE_PERSONAL_DESKTOP = 1 |
| const | MODE_REPOSITORY = 2 |
Protected Member Functions | |
| __construct ($a_usr_id=0) | |
| Singleton instance. | |
| readPDCalendars () | |
| Read categories of user. | |
| readSelectedItemCalendars () | |
| Read categories of selected items. | |
| readReposCalendars () | |
| Read available repository calendars. | |
| readPublicCalendars () | |
| Read public calendars. | |
| readPrivateCalendars () | |
| Read private calendars. | |
| readSelectedCategories ($a_obj_ids) | |
| read selected categories | |
| addSubitemCalendars () | |
| Add subitem calendars E.g. | |
Protected Attributes | |
| $db | |
| $user_id | |
| $categories = array() | |
| $categories_info = array() | |
| $subitem_categories = array() | |
| $root_ref_id = 0 | |
| $root_obj_id = 0 | |
Static Protected Attributes | |
| static | $instance = null |
class for calendar categories
Definition at line 36 of file class.ilCalendarCategories.php.
|
protected |
Singleton instance.
protected
| int | $a_usr_id | user id |
Definition at line 62 of file class.ilCalendarCategories.php.
|
static |
get singleton instance
public
| int | $a_usr_id | user id |
Definition at line 82 of file class.ilCalendarCategories.php.
References $instance.
Referenced by ilCalendarAppointmentsTableGUI\__construct(), ilCalendarChangedAppointmentsTableGUI\__construct(), ilCalendarPresentationGUI\__construct(), ilCalendarAppointmentColors\__construct(), ilCalendarAppointmentGUI\edit(), ilCalendarSchedule\getChangedEvents(), ilCalendarSchedule\getEvents(), ilPDCalendarBlockGUI\initCategories(), ilCalendarBlockGUI\initCategories(), ilCalendarAppointmentGUI\initForm(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategoryTableGUI\parse(), ilCalendarCategoryGUI\saveSelection(), ilCalendarCategoryGUI\showAssignedAppointments(), and ilCalendarAppointmentGUI\showInfoScreen().
Here is the caller graph for this function:
|
static |
check if user is owner of a category
public
| int | usr_id |
| int | cal_id |
Definition at line 124 of file class.ilCalendarCategories.php.
References $res, and ilCalendarCategory\TYPE_USR.
Referenced by ilCalendarShared\getSharedCalendarsForUser().
Here is the caller graph for this function:
|
static |
lookup category by obj_id
public
| int | obj_id |
Definition at line 99 of file class.ilCalendarCategories.php.
References $res, DB_FETCHMODE_OBJECT, and ilCalendarCategory\TYPE_OBJ.
Referenced by ilCalendarAppEventListener\createAppointments(), ilCalendarAppEventListener\deleteCategory(), ilDataLoader\generateCalendarEntries(), and ilCalendarAppointmentGUI\initForm().
Here is the caller graph for this function:
|
protected |
Add subitem calendars E.g.
session calendars in courses
| @return |
Definition at line 553 of file class.ilCalendarCategories.php.
References $res, DB_FETCHMODE_OBJECT, and ilUtil\quoteArray().
Referenced by readPDCalendars(), and readSelectedItemCalendars().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarCategories::getCategories | ( | $a_include_subitem_calendars = false | ) |
get categories
| $a_include_subitems | include subitem calendars public |
Definition at line 213 of file class.ilCalendarCategories.php.
| ilCalendarCategories::getCategoriesInfo | ( | ) |
get categories
public
| @return |
Definition at line 202 of file class.ilCalendarCategories.php.
| ilCalendarCategories::getCategoryInfo | ( | $a_cat_id | ) |
public
| @return |
Definition at line 175 of file class.ilCalendarCategories.php.
| ilCalendarCategories::getSubitemCategories | ( | $a_cat_id | ) |
get subitem categories for a specific category
| int | $a_category_id | Id of category in question |
Definition at line 229 of file class.ilCalendarCategories.php.
| ilCalendarCategories::initialize | ( | $a_mode, | |
$a_source_ref_id = 0 |
|||
| ) |
initialize visible categories
public
| int | mode |
| int | ref_id of root node |
Definition at line 144 of file class.ilCalendarCategories.php.
References ilCalendarUserSettings\_getInstance(), ilObject\_lookupObjId(), ilCalendarUserSettings\CAL_SELECTION_MEMBERSHIP, readPDCalendars(), readReposCalendars(), and readSelectedItemCalendars().
Here is the call graph for this function:| ilCalendarCategories::isEditable | ( | $a_cat_id | ) |
check if category is editable
public
| int | $a_cat_id | category id |
Definition at line 282 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 294 of file class.ilCalendarCategories.php.
| ilCalendarCategories::prepareCategoriesOfUserForSelection | ( | ) |
prepare categories of users for selection
public
| int | user id |
Definition at line 246 of file class.ilCalendarCategories.php.
References $lng, and ilCalendarCategory\TYPE_USR.
|
protected |
Read categories of user.
protected
| @return | void |
Definition at line 310 of file class.ilCalendarCategories.php.
References ilParticipants\_getMembershipByType(), addSubitemCalendars(), readPrivateCalendars(), readPublicCalendars(), and readSelectedCategories().
Referenced by initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read private calendars.
protected
Definition at line 445 of file class.ilCalendarCategories.php.
References $res, DB_FETCHMODE_OBJECT, ilCalendarSharedStatus\getAcceptedCalendars(), ilUtil\quoteArray(), and ilCalendarCategory\TYPE_USR.
Referenced by readPDCalendars(), readReposCalendars(), and readSelectedItemCalendars().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read public calendars.
protected
Definition at line 415 of file class.ilCalendarCategories.php.
References $res, ilCalendarSettings\_getInstance(), DB_FETCHMODE_OBJECT, and ilCalendarCategory\TYPE_GLOBAL.
Referenced by readPDCalendars(), readReposCalendars(), and readSelectedItemCalendars().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read available repository calendars.
protected
| @return |
Definition at line 379 of file class.ilCalendarCategories.php.
References $res, DB_FETCHMODE_OBJECT, readPrivateCalendars(), readPublicCalendars(), and readSelectedCategories().
Referenced by initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
read selected categories
protected
Definition at line 494 of file class.ilCalendarCategories.php.
References $ref_id, $res, ilObject\_getAllReferences(), ilObject\_lookupType(), DB_FETCHMODE_OBJECT, ilUtil\quoteArray(), and ilCalendarCategory\TYPE_OBJ.
Referenced by readPDCalendars(), readReposCalendars(), and readSelectedItemCalendars().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read categories of selected items.
| @return |
Definition at line 331 of file class.ilCalendarCategories.php.
References ilObjUser\_lookupDesktopItems(), addSubitemCalendars(), readPrivateCalendars(), readPublicCalendars(), and readSelectedCategories().
Referenced by initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 47 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 48 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 43 of file class.ilCalendarCategories.php.
|
staticprotected |
Definition at line 41 of file class.ilCalendarCategories.php.
Referenced by _getInstance().
|
protected |
Definition at line 52 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 51 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 49 of file class.ilCalendarCategories.php.
|
protected |
Definition at line 45 of file class.ilCalendarCategories.php.
| const ilCalendarCategories::MODE_PERSONAL_DESKTOP = 1 |
Definition at line 38 of file class.ilCalendarCategories.php.
Referenced by ilCalendarPresentationGUI\__construct(), and ilPDCalendarBlockGUI\initCategories().
| const ilCalendarCategories::MODE_REPOSITORY = 2 |
Definition at line 39 of file class.ilCalendarCategories.php.
Referenced by ilCalendarBlockGUI\initCategories().