ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilAppointmentCustomModalPlugin.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 
37  public function getAppointment()
38  {
39  return $this->appointment;
40  }
41 
49  public function getStartDate()
50  {
51  return $this->start_date;
52  }
53 
58  final public function getComponentType()
59  {
60  return IL_COMP_SERVICE;
61  }
62 
67  final public function getComponentName()
68  {
69  return "Calendar";
70  }
71 
76  final public function getSlot()
77  {
78  return "AppointmentCustomModal";
79  }
80 
85  final public function getSlotId()
86  {
87  return "capm";
88  }
89 
93  final public function slotInit()
94  {
95  //nothing to do here.
96  }
97 
102  abstract public function replaceContent();
103 
108  abstract public function addExtraContent();
109 
115  abstract public function infoscreenAddContent(ilInfoScreenGUI $a_info);
116 
122  abstract public function toolbarAddItems(ilToolbarGUI $a_toolbar);
123 
128  abstract public function toolbarReplaceContent();
129 
134  abstract public function editModalTitle($current_title);
135 }
Model for a calendar entry.
Class ilInfoScreenGUI.
setAppointment(ilCalendarEntry $a_appointment, ilDateTime $a_start_date)
infoscreenAddContent(ilInfoScreenGUI $a_info)
Add elements in the infoscreen.
addExtraContent()
Add content after the Infoscreen.
Abstract parent class for all calendar custom modals plugin classes.
editModalTitle($current_title)
Date and time handling
toolbarAddItems(ilToolbarGUI $a_toolbar)
Add elements in the toolbar.
replaceContent()
Replace the content inside the modal.
toolbarReplaceContent()
Replace the toolbar for another one.
const IL_COMP_SERVICE