ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
class.ilAppointmentCustomModalPlugin.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
27 {
29  protected ?ilDateTime $start_date;
30 
31  public function setAppointment(ilCalendarEntry $a_appointment, ilDateTime $a_start_date): void
32  {
33  $this->appointment = $a_appointment;
34  $this->start_date = $a_start_date;
35  }
36 
37  public function getAppointment(): ?ilCalendarEntry
38  {
39  return $this->appointment;
40  }
41 
48  public function getStartDate(): ?ilDateTime
49  {
50  return $this->start_date;
51  }
52 
56  abstract public function replaceContent(): string;
57 
61  abstract public function addExtraContent(): string;
62 
66  abstract public function infoscreenAddContent(ilInfoScreenGUI $a_info): ?ilInfoScreenGUI;
67 
71  abstract public function toolbarAddItems(ilToolbarGUI $a_toolbar): ?ilToolbarGUI;
72 
76  abstract public function toolbarReplaceContent(): ?ilToolbarGUI;
77 
78  abstract public function editModalTitle(string $current_title): string;
79 }
editModalTitle(string $current_title)
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.
getStartDate()
This is the date of the calendar entry, it&#39;s not the appointment start date.
toolbarAddItems(ilToolbarGUI $a_toolbar)
Add elements in the toolbar.
replaceContent()
Replace the content inside the modal.
toolbarReplaceContent()
Replace the toolbar for another one.