ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAppointmentPresentationMilestoneGUI Class Reference

ilAppointmentPresentationMilestoneGUI class presents milestones information. More...

+ Inheritance diagram for ilAppointmentPresentationMilestoneGUI:
+ Collaboration diagram for ilAppointmentPresentationMilestoneGUI:

Public Member Functions

 collectPropertiesAndActions ()
 
- Public Member Functions inherited from ilAppointmentPresentationGUI
 __construct (array $a_appointment, ?ilInfoScreenGUI $a_info_screen, ?ilToolbarGUI $a_toolbar, ?Item $a_list_item)
 
 getObjIdForAppointment ()
 
 getToolbar ()
 
 getListItem ()
 Get list item. More...
 
 getInfoScreen ()
 
 getCatId (int $a_entry_id)
 
 getCatInfo ()
 
 executeCommand ()
 
 getHTML ()
 
 addContainerInfo (int $a_obj_id)
 Add course/group container info. More...
 
 addInfoSection (string $a_txt)
 Add info section. More...
 
 addInfoProperty (string $a_txt, string $a_val)
 Add info property. More...
 
 addListItemProperty (string $a_txt, string $a_val)
 Add list item property. More...
 
 addAction (string $a_txt, string $a_link)
 Add action. More...
 
 collectPropertiesAndActions ()
 Collect properties and actions. More...
 
 collectStandardPropertiesAndActions ()
 Collect standard properties and actions. More...
 
 addObjectLinks (int $obj_id, ?array $a_appointment=null)
 Add object link. More...
 
 getReadableRefIds (int $a_obj_id)
 
 addEventDescription (array $a_app)
 Add event description. More...
 
 addEventLocation (array $a_app)
 Add event location. More...
 
 addLastUpdate (array $a_app)
 Add last update. More...
 
 addCalendarInfo (array $cat_info)
 
 addCommonSection (array $a_app, int $a_obj_id=0, ?array $cat_info=null, bool $a_container_info=false)
 
 addMetaData (string $a_obj_type, int $a_obj_id, ?string $a_sub_obj_type=null, ?int $a_sub_obj_id=null)
 
 getUserName (int $a_user_id, bool $a_force_name=false)
 Get (linked if possible) user name. More...
 
 downloadFiles ()
 Download files from an appointment ( Modals ) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilAppointmentPresentationGUI
static getInstance (array $a_appointment, ?ilInfoScreenGUI $a_info_screen, ?ilToolbarGUI $a_toolbar, ?Item $a_list_item)
 
- Protected Member Functions inherited from ilAppointmentPresentationGUI
 readObjIdForAppointment ()
 read obj_id for appointment More...
 
 buildDirectLinkForAppointment (int $a_ref_id, ?array $a_appointment=null)
 Build direct link for appointment. More...
 
- Protected Attributes inherited from ilAppointmentPresentationGUI
array $appointment
 
ilToolbarGUI $toolbar
 
ilInfoScreenGUI $infoscreen
 
ilLanguage $lng
 
ilTree $tree
 
UIServices $ui
 
ilCtrlInterface $ctrl
 
ilAccessHandler $access
 
ilRbacSystem $rbacsystem
 
ilObjUser $user
 
RefineryFactory $refinery
 
HttpServices $http
 
Item $list_item = null
 
array $info_items = []
 
array $list_properties = []
 
array $actions = []
 
array $readable_ref_ids
 
bool $has_files = false
 
int $obj_id = 0
 
- Static Protected Attributes inherited from ilAppointmentPresentationGUI
static self $instance
 

Detailed Description

Member Function Documentation

◆ collectPropertiesAndActions()

ilAppointmentPresentationMilestoneGUI::collectPropertiesAndActions ( )

Definition at line 14 of file class.ilAppointmentPresentationMilestoneGUI.php.

References ilAppointmentPresentationGUI\$appointment, $DIC, Vendor\Package\$f, ilAppointmentPresentationGUI\$user, ilAppointmentPresentationGUI\addCommonSection(), ilAppointmentPresentationGUI\addInfoProperty(), ilAppointmentPresentationGUI\addInfoSection(), ilAppointmentPresentationGUI\addLastUpdate(), ilAppointmentPresentationGUI\addListItemProperty(), ilAppointmentPresentationGUI\getCatInfo(), ilAppointmentPresentationGUI\getUserName(), and ILIAS\Repository\lng().

14  : 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  }
addListItemProperty(string $a_txt, string $a_val)
Add list item property.
addInfoSection(string $a_txt)
Add info section.
addInfoProperty(string $a_txt, string $a_val)
Add info property.
global $DIC
Definition: feed.php:28
addLastUpdate(array $a_app)
Add last update.
getUserName(int $a_user_id, bool $a_force_name=false)
Get (linked if possible) user name.
addCommonSection(array $a_app, int $a_obj_id=0, ?array $cat_info=null, bool $a_container_info=false)
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: