ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4require_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}
An exception for terminatinating execution or to throw for unit testing.
const IL_COMP_SERVICE
Abstract parent class for all calendar custom grid plugin classes.
getAppointment()
Get the calendar entry (appointment['event'])
editShyButtonTitle()
Edit the shy button title.
getStartDate()
Get the specific start date of the calendar entry, not the appointment starting date.
editAgendaItem(\ILIAS\UI\Component\Item\Item $item)
addExtraContent()
Add extra content in the grid after the event title.
replaceContent($content)
Replaces the complete content in a calendar Grid.
addGlyph()
Add glyph before the appointment title.
setAppointment(ilCalendarEntry $a_appointment, ilDateTime $a_start_date)
Model for a calendar entry.
@classDescription Date and time handling
Class BaseForm.
Class Factory.