19 declare(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;
static _lookupCategory(int $a_cal_id)
static _getAllReferences(int $id)
get all reference ids for object ID
__construct(array $a_appointment)
static getInstanceByCategoryId(int $a_cat_id)
Base file handler class for appointment classes.
static _lookupType(int $id, bool $reference=false)
getCatId(int $a_entry_id)