24 $this->access = $DIC->access();
25 $this->rbacsystem = $DIC->rbac()->system();
26 $this->
user = $DIC->user();
28 $this->appointment = $a_appointment;
38 return new static($a_appointment);
48 $cat_id = $this->
getCatId($this->appointment[
'event']->getEntryId());
52 $cat_info[
"type"] = $cat->getType();
53 $cat_info[
"obj_id"] = $cat->getObjId();
54 $cat_info[
"title"] = $cat->getTitle();
55 $cat_info[
"cat_id"] = $cat_id;
56 $cat_info[
"editable"] =
false;
58 switch ($cat_info[
"type"]) {
60 if ($cat_info[
"obj_id"] == $this->
user->getId()) {
61 $cat_info[
"editable"] =
true;
67 if ($obj_type ==
'crs' or $obj_type ==
'grp') {
70 if ($this->access->checkAccess(
'edit_event',
'', $ref_id)) {
71 $cat_info[
"editable"] =
true;
80 $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.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
Base file handler class for appointment classes.
__construct($a_appointment)
Constructor.