2 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
21 protected $mode = self::MODE_MODAL;
43 $this->lng = $DIC->language();
44 $this->ctrl = $DIC->ctrl();
49 $this->appointment = $a_app;
51 $this->tpl = $DIC[
"tpl"];
64 $this->list_item = $a_val;
65 $this->mode = self::MODE_LIST_ITEM;
89 return new static(
$seed, $a_app);
96 $next_class = $ilCtrl->getNextClass($this);
97 $cmd = $ilCtrl->getCmd(
"getHTML");
99 switch ($next_class) {
100 case 'ilcalendarappointmentgui':
101 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
103 $this->ctrl->forwardCommand($app);
107 if ($next_class !=
'') {
109 $class_path = $this->ctrl->lookupClassPath($next_class);
110 include_once($class_path);
113 $class_name = $this->ctrl->getClassForClasspath($class_path);
114 if (in_array(
"ilCalendarAppointmentPresentation", class_implements($class_name))) {
116 $gui_class =
new $class_name($this->appointment, $this->info_screen, $this->toolbar, null);
117 $this->ctrl->forwardCommand($gui_class);
138 if ($this->mode == self::MODE_MODAL) {
141 if ($this->mode == self::MODE_LIST_ITEM) {
153 include_once
"./Services/Calendar/classes/AppointmentPresentation/class.ilAppointmentPresentationFactory.php";
155 $tpl =
new ilTemplate(
'tpl.appointment_presentation.html',
true,
true,
'Services/Calendar');
158 $info_screen->setFormAction($this->ctrl->getFormAction($this));
160 #21529 create new toolbar with unique id using the entry id for this purpose 163 $toolbar->setId($this->appointment[
'event']->getEntryId());
167 $this->ctrl->getHTML($f);
172 $content = $plugin_results[
'content'];
173 $toolbar = $plugin_results[
'toolbar'];
176 $tpl->setCurrentBlock(
"toolbar");
178 $tpl->parseCurrentBlock();
182 $tpl->setVariable(
"CONTENT", $content);
193 include_once
"./Services/Calendar/classes/AppointmentPresentation/class.ilAppointmentPresentationFactory.php";
195 $this->ctrl->getHTML($f);
196 $this->list_item = $f->getListItem();
201 global $ilPluginAdmin;
205 foreach ($ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"Calendar",
"capm") as $plugin_name) {
206 $res[] = $ilPluginAdmin->getPluginObject(
223 $plugin->setAppointment($this->appointment[
'event'],
new ilDateTime($this->appointment[
'dstart']));
225 if ($new_infoscreen = $plugin->infoscreenAddContent($this->info_screen)) {
226 $this->info_screen = $new_infoscreen;
229 $content = $this->info_screen->getHTML();
230 $extra_content = $plugin->addExtraContent();
231 if ($extra_content !=
'') {
232 $content .= $extra_content;
235 if ($new_content = $plugin->replaceContent()) {
236 $content = $new_content;
239 if ($new_toolbar = $plugin->toolbarAddItems(
$toolbar)) {
243 if ($new_toolbar = $plugin->toolbarReplaceContent()) {
244 $new_toolbar->setId($a_toolbar->getId());
250 'content' => $content,
static _getInstance()
get singleton instance
getContentByPlugins($a_content, $a_toolbar)
__construct(ilDate $seed=null, $a_app)
Singleton.
setListItemMode(\ILIAS\UI\Component\Item\Standard $a_val)
Set list item mode.
getModalHTML()
Get modal html.
static _getInstance(ilDate $seed, $a_app)
get singleton instance
getListItem()
Get list item mode.
foreach($_POST as $key=> $value) $res
special template class to simplify handling of ITX/PEAR
Class ilCalendarAppointmentPresentationGUI.
static getInstance($a_appointment, $a_info_screen, $a_toolbar, $a_list_item)
modifyListItem()
Modify List item.
Create styles array
The data for the language used.
Administrate calendar appointments.