36 $this->user_id =
$DIC->user()->getId();
38 include_once(
"./Services/Calendar/classes/class.ilCalendarCategories.php");
40 if ($this->cats->getMode() == 0) {
41 include_once(
"./Services/Calendar/exceptions/class.ilCalCategoriesNotInitializedException.php");
53 if (!is_object(self::$instance)) {
67 $info = $this->cats->getCategoryInfo($a_cat_id);
68 return $info[
'settings'];
79 $info = $this->cats->getCategoryInfo($a_cat_id);
95 $info = $this->cats->getCategoryInfo($a_cat_id);
96 if ($info[
'accepted']) {
111 $info = $this->cats->getCategoryInfo($a_cat_id);
112 if ($info[
'remote']) {
127 $info = $this->cats->getCategoryInfo($a_cat_id);
128 return $info[
'editable'];
139 $info = $this->cats->getCategoryInfo($a_cat_id);
An exception for terminatinating execution or to throw for unit testing.
Exception being thrown if code relies on initialization of calendar categories but no initialization ...
Checks if certain actions can be performed.
checkUnshareCal($a_cat_id)
Check un-sharing (other users) calendar.
__construct()
Constructor.
checkAddEvent($a_cat_id)
Check if adding an event is possible.
checkShareCal($a_cat_id)
Check sharing (own) calendar.
checkSynchronizeCal($a_cat_id)
Check synchronize remote calendar.
checkDeleteCal($a_cat_id)
Check if adding an event is possible.
static getInstance()
Get instance.
checkSettingsCal($a_cat_id)
Check calendar editing.
static _getInstance($a_usr_id=0)
get singleton instance