ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
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
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}
An exception for terminatinating execution or to throw for unit testing.
const IL_COMP_SERVICE
Abstract parent class for all calendar custom modals plugin classes.
addExtraContent()
Add content after the Infoscreen.
editModalTitle($current_title)
replaceContent()
Replace the content inside the modal.
infoscreenAddContent(ilInfoScreenGUI $a_info)
Add elements in the infoscreen.
toolbarReplaceContent()
Replace the toolbar for another one.
toolbarAddItems(ilToolbarGUI $a_toolbar)
Add elements in the toolbar.
setAppointment(ilCalendarEntry $a_appointment, ilDateTime $a_start_date)
Model for a calendar entry.
@classDescription Date and time handling
Class ilInfoScreenGUI.