ILIAS  release_8 Revision v8.24
class.ilAppointmentPresentationMilestoneGUI.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
13{
14 public function collectPropertiesAndActions(): void
15 {
16 global $DIC;
17
18 $f = $DIC->ui()->factory();
19 $r = $DIC->ui()->renderer();
20
22 $completion = $appointment['event']->getCompletion();
23 $users_resp = $appointment['event']->readResponsibleUsers();
24 $cat_info = $this->getCatInfo();
25
26 $this->addCommonSection($appointment, $cat_info['obj_id']);
27 $this->addInfoSection($this->lng->txt("cal_app_info"));
28
29 $users_list = array();
30 foreach ($users_resp as $user) {
31 $users_list[] = $this->getUserName($user['user_id']);
32 }
33 if (count($users_list) > 0) {
34 $this->addInfoProperty($this->lng->txt("cal_responsible"), implode("<br>", $users_list));
35 $this->addListItemProperty($this->lng->txt("cal_responsible"), implode("<br>", $users_list));
36 }
37
38 $this->addInfoProperty($this->lng->txt("cal_task_completion"), $completion . " %");
39 $this->addListItemProperty($this->lng->txt("cal_task_completion"), $completion . " %");
40
41 // last edited
43 }
44}
addInfoProperty(string $a_txt, string $a_val)
Add info property.
addCommonSection(array $a_app, int $a_obj_id=0, ?array $cat_info=null, bool $a_container_info=false)
getUserName(int $a_user_id, bool $a_force_name=false)
Get (linked if possible) user name.
addInfoSection(string $a_txt)
Add info section.
addListItemProperty(string $a_txt, string $a_val)
Add list item property.
ilAppointmentPresentationMilestoneGUI class presents milestones information.
global $DIC
Definition: feed.php:28