ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAppointmentCustomGridPlugin.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Component/classes/class.ilPlugin.php';
5 
13 {
17  protected $appointment;
18 
22  protected $start_date;
23 
28  public function setAppointment(ilCalendarEntry $a_appointment, ilDateTime $a_start_date)
29  {
30  $this->appointment = $a_appointment;
31  $this->start_date = $a_start_date;
32  }
33 
38  public function getAppointment()
39  {
40  return $this->appointment;
41  }
42 
47  public function getStartDate()
48  {
49  return $this->start_date;
50  }
51 
56  final public function getComponentType()
57  {
58  return IL_COMP_SERVICE;
59  }
60 
65  final public function getComponentName()
66  {
67  return "Calendar";
68  }
69 
74  final public function getSlot()
75  {
76  return "AppointmentCustomGrid";
77  }
78 
83  final public function getSlotId()
84  {
85  return "capg";
86  }
87 
91  final public function slotInit()
92  {
93  //nothing to do here.
94  }
95 
96  //Day, Week and Month views.
97 
103  abstract public function replaceContent($content);
104 
109  abstract public function addExtraContent();
110 
115  abstract public function addGlyph();
116 
121  abstract public function editShyButtonTitle();
122 
123 
124  //List view.
128  abstract public function editAgendaItem(\ILIAS\UI\Component\Item\Item $item);
129 }
getAppointment()
Get the calendar entry (appointment[&#39;event&#39;])
Model for a calendar entry.
editShyButtonTitle()
Edit the shy button title.
Class Factory.
Class BaseForm.
editAgendaItem(\ILIAS\UI\Component\Item\Item $item)
Abstract parent class for all calendar custom grid plugin classes.
addGlyph()
Add glyph before the appointment title.
Date and time handling
setAppointment(ilCalendarEntry $a_appointment, ilDateTime $a_start_date)
addExtraContent()
Add extra content in the grid after the event title.
getStartDate()
Get the specific start date of the calendar entry, not the appointment starting date.
const IL_COMP_SERVICE
replaceContent($content)
Replaces the complete content in a calendar Grid.