3declare(strict_types=1);
25 $this->
access = $DIC->access();
26 $this->rbacsystem =
$DIC->rbac()->system();
27 $this->
user = $DIC->user();
28 $this->
logger = $DIC->logger()->cal();
29 $this->appointment = $a_appointment;
42 $cat_id = $this->
getCatId($this->appointment[
'event']->getEntryId());
46 $cat_info[
"type"] = $cat->getType();
47 $cat_info[
"obj_id"] = $cat->getObjId();
48 $cat_info[
"title"] = $cat->getTitle();
49 $cat_info[
"cat_id"] = $cat_id;
50 $cat_info[
"editable"] =
false;
52 switch ($cat_info[
"type"]) {
54 if ($cat_info[
"obj_id"] == $this->
user->getId()) {
55 $cat_info[
"editable"] =
true;
61 if ($obj_type ==
'crs' or $obj_type ==
'grp') {
64 if ($this->
access->checkAccess(
'edit_event',
'', $ref_id)) {
65 $cat_info[
"editable"] =
true;
73 if ($this->rbacsystem->checkAccess(
77 $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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...