3 declare(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;
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)