3 declare(strict_types=1);
    39         $this->user_id = $DIC->user()->getId();
    43                 "ilCalendarActions needs ilCalendarCategories to be initialized for user " . $this->user_id
    53         if (!self::$instance instanceof 
self) {
    54             self::$instance = 
new self();
    56         return self::$instance;
    64         $info = $this->cats->getCategoryInfo($a_cat_id);
    65         return (
bool) ($info[
'settings'] ?? 
false);
    73         $info = $this->cats->getCategoryInfo($a_cat_id);
    76             ($info[
'obj_id'] ?? 
'') == $this->user_id;
    84         $info = $this->cats->getCategoryInfo($a_cat_id);
    85         if ($info[
'accepted'] ?? 
false) {
    96         $info = $this->cats->getCategoryInfo($a_cat_id);
    97         if ($info[
'remote'] ?? 
false) {
   108         $info = $this->cats->getCategoryInfo($a_cat_id);
   109         return $info[
'editable'] ?? 
false;
   117         $info = $this->cats->getCategoryInfo($a_cat_id);
 class for calendar categories 
 
checkUnshareCal(int $a_cat_id)
Check un-sharing (other users) calendar. 
 
checkDeleteCal(int $a_cat_id)
Check if adding an event is possible. 
 
checkSettingsCal(int $a_cat_id)
Check calendar editing. 
 
static getInstance()
Get instance. 
 
ilCalendarCategories $cats
 
checkSynchronizeCal(int $a_cat_id)
Check synchronize remote calendar. 
 
static ilCalendarActions $instance
 
checkShareCal(int $a_cat_id)
Check sharing (own) calendar. 
 
static _getInstance($a_usr_id=0)
get singleton instance 
 
__construct()
Constructor. 
 
checkAddEvent(int $a_cat_id)
Check if adding an event is possible. 
 
Exception being thrown if code relies on initialization of calendar categories but no initialization ...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...