29 $this->access = $DIC->access();
30 $this->rbacsystem = $DIC->rbac()->system();
31 $this->
user = $DIC->user();
32 $this->logger = $DIC->logger()->cal();
33 $this->appointment = $a_appointment;
43 return new static($a_appointment);
53 $cat_id = $this->
getCatId($this->appointment[
'event']->getEntryId());
57 $cat_info[
"type"] = $cat->getType();
58 $cat_info[
"obj_id"] = $cat->getObjId();
59 $cat_info[
"title"] = $cat->getTitle();
60 $cat_info[
"cat_id"] = $cat_id;
61 $cat_info[
"editable"] =
false;
63 switch ($cat_info[
"type"]) {
65 if ($cat_info[
"obj_id"] == $this->
user->getId()) {
66 $cat_info[
"editable"] =
true;
72 if ($obj_type ==
'crs' or $obj_type ==
'grp') {
75 if ($this->access->checkAccess(
'edit_event',
'', $ref_id)) {
76 $cat_info[
"editable"] =
true;
85 $cat_info[
"editable"] =
true;
static _lookupCategory($a_cal_id)
Lookup category id.
static _getInstance()
get singleton instance
static getInstance($a_appointment)
Get instance.
static _getAllReferences($a_id)
get all reference ids of object
static getInstanceByCategoryId($a_cat_id)
Get instance by category id.
static _lookupType($a_id, $a_reference=false)
lookup object type
Base file handler class for appointment classes.
__construct($a_appointment)
Constructor.