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)) {
56 return 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);
checkShareCal($a_cat_id)
Check sharing (own) calendar.
checkSynchronizeCal($a_cat_id)
Check synchronize remote calendar.
checkAddEvent($a_cat_id)
Check if adding an event is possible.
static getInstance()
Get instance.
checkDeleteCal($a_cat_id)
Check if adding an event is possible.
checkSettingsCal($a_cat_id)
Check calendar editing.
checkUnshareCal($a_cat_id)
Check un-sharing (other users) calendar.
static _getInstance($a_usr_id=0)
get singleton instance
__construct()
Constructor.
Exception being thrown if code relies on initialization of calendar categories but no initialization ...
Checks if certain actions can be performed.