19declare(strict_types=1);
39 $this->
access = $DIC->access();
40 $this->rbacsystem =
$DIC->rbac()->system();
41 $this->
user = $DIC->user();
42 $this->
logger = $DIC->logger()->cal();
43 $this->appointment = $a_appointment;
56 $cat_id = $this->
getCatId($this->appointment[
'event']->getEntryId());
60 $cat_info[
"type"] = $cat->getType();
61 $cat_info[
"obj_id"] = $cat->getObjId();
62 $cat_info[
"title"] = $cat->getTitle();
63 $cat_info[
"cat_id"] = $cat_id;
64 $cat_info[
"editable"] =
false;
66 switch ($cat_info[
"type"]) {
68 if ($cat_info[
"obj_id"] == $this->
user->getId()) {
69 $cat_info[
"editable"] =
true;
75 if ($obj_type ==
'crs' or $obj_type ==
'grp') {
78 if ($this->
access->checkAccess(
'edit_event',
'', $ref_id)) {
79 $cat_info[
"editable"] =
true;
87 if ($this->rbacsystem->checkAccess(
91 $cat_info[
"editable"] =
true;
Base file handler class for appointment classes.
getCatId(int $a_entry_id)
__construct(array $a_appointment)
static _lookupCategory(int $a_cal_id)
static getInstanceByCategoryId(int $a_cat_id)
Component logger with individual log levels by component id.
static _lookupType(int $id, bool $reference=false)
static _getAllReferences(int $id)
get all reference ids for object ID
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...