ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilAppointmentPresentationMilestoneGUI.php
Go to the documentation of this file.
1 <?php
2 include_once './Services/Calendar/interfaces/interface.ilCalendarAppointmentPresentation.php';
3 include_once './Services/Calendar/classes/AppointmentPresentation/class.ilAppointmentPresentationGUI.php';
4 
14 {
15  public function collectPropertiesAndActions()
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 }
addInfoProperty($a_txt, $a_val)
Add info property.
getUserName($a_user_id, $a_force_name=false)
Get (linked if possible) user name.
global $DIC
Definition: saml.php:7
$r
Definition: example_031.php:79
addCommonSection($a_app, $a_obj_id=0, $cat_info=null, $a_container_info=false)
Add common section.
Create styles array
The data for the language used.
ilAppointmentPresentationMilestoneGUI class presents milestones information.
addListItemProperty($a_txt, $a_val)
Add list item property.