ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilAppointmentPresentationMilestoneGUI.php
Go to the documentation of this file.
1<?php
2include_once './Services/Calendar/interfaces/interface.ilCalendarAppointmentPresentation.php';
3include_once './Services/Calendar/classes/AppointmentPresentation/class.ilAppointmentPresentationGUI.php';
4
14{
16 {
17 global $DIC;
18
19 $f = $DIC->ui()->factory();
20 $r = $DIC->ui()->renderer();
21
23 $completion = $appointment['event']->getCompletion();
24 $users_resp = $appointment['event']->readResponsibleUsers();
25 $cat_info = $this->getCatInfo();
26
27 //$this->addCommonSection($appointment, 0, $cat_info);
28 $this->addCommonSection($appointment, $cat_info['obj_id']);
29
30 // event title
31 /*
32 $this->addInfoSection($appointment["event"]->getPresentationTitle());
33
34 // event description
35 $this->addEventDescription($appointment);
36
37 // calendar info
38 if ($cat_info != null)
39 {
40 $this->addCalendarInfo($cat_info);
41 }*/
42
43 $this->addInfoSection($this->lng->txt("cal_app_info"));
44
45 $users_list = array();
46 foreach ($users_resp as $user) {
47 $users_list[] = $this->getUserName($user['user_id']);
48 }
49 if (count($users_list) > 0) {
50 $this->addInfoProperty($this->lng->txt("cal_responsible"), implode("<br>", $users_list));
51 $this->addListItemProperty($this->lng->txt("cal_responsible"), implode("<br>", $users_list));
52 }
53
54 $this->addInfoProperty($this->lng->txt("cal_task_completion"), $completion . " %");
55 $this->addListItemProperty($this->lng->txt("cal_task_completion"), $completion . " %");
56
57 // last edited
59 }
60}
An exception for terminatinating execution or to throw for unit testing.
addListItemProperty($a_txt, $a_val)
Add list item property.
getUserName($a_user_id, $a_force_name=false)
Get (linked if possible) user name.
addCommonSection($a_app, $a_obj_id=0, $cat_info=null, $a_container_info=false)
Add common section.
addInfoProperty($a_txt, $a_val)
Add info property.
ilAppointmentPresentationMilestoneGUI class presents milestones information.
$DIC
Definition: xapitoken.php:46