ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 ($a_appointment, $a_info_screen, $a_toolbar, $a_list_item)
 
 getObjIdForAppointment ()
 
 getToolbar ()
 
 getListItem ()
 Get list item. More...
 
 getInfoScreen ()
 
 getCatId ($a_entry_id)
 
 getCatInfo ()
 
 executeCommand ()
 
 getHTML ()
 Get HTML. More...
 
 addContainerInfo ($a_obj_id)
 Add course/group container info. More...
 
 addInfoSection ($a_txt)
 Add info section. More...
 
 addInfoProperty ($a_txt, $a_val)
 Add info property. More...
 
 addListItemProperty ($a_txt, $a_val)
 Add list item property. More...
 
 addAction ($a_txt, $a_link)
 Add action. More...
 
 collectPropertiesAndActions ()
 Collect properties and actions. More...
 
 collectStandardPropertiesAndActions ()
 Collect standard properties and actions. More...
 
 addObjectLinks ($obj_id)
 Add object link. More...
 
 getReadableRefIds ($a_obj_id)
 Get readable ref ids. More...
 
 addEventDescription ($a_app)
 Add event description. More...
 
 addEventLocation ($a_app)
 Add event location. More...
 
 addLastUpdate ($a_app)
 Add last update. More...
 
 addCalendarInfo ($cat_info)
 Add calendar info. More...
 
 addCommonSection ($a_app, $a_obj_id=0, $cat_info=null, $a_container_info=false)
 Add common section. More...
 
 addMetaData ($a_obj_type, $a_obj_id, $a_sub_obj_type=null, $a_sub_obj_id=null)
 Add metadata. More...
 
 getUserName ($a_user_id, $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 ($a_appointment, $a_info_screen, $a_toolbar, $a_list_item)
 
- Protected Member Functions inherited from ilAppointmentPresentationGUI
 readObjIdForAppointment ()
 read obj_id for appointment More...
 
- Protected Attributes inherited from ilAppointmentPresentationGUI
 $toolbar
 
 $appointment
 
 $infoscreen
 
 $lng
 
 $tree
 
 $ui
 
 $list_item = null
 
 $info_items = array()
 
 $list_properties = array()
 
 $actions = array()
 
 $ctrl
 
 $access
 
 $readable_ref_ids
 
 $has_files = false
 
 $obj_id = 0
 
- Static Protected Attributes inherited from ilAppointmentPresentationGUI
static $instance
 

Detailed Description

Member Function Documentation

◆ collectPropertiesAndActions()

ilAppointmentPresentationMilestoneGUI::collectPropertiesAndActions ( )

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

References ilAppointmentPresentationGUI\$appointment, $DIC, $r, ilAppointmentPresentationGUI\addCommonSection(), ilAppointmentPresentationGUI\addInfoProperty(), ilAppointmentPresentationGUI\addInfoSection(), ilAppointmentPresentationGUI\addLastUpdate(), ilAppointmentPresentationGUI\addListItemProperty(), array, ilAppointmentPresentationGUI\getCatInfo(), and ilAppointmentPresentationGUI\getUserName().

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  }
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.
addListItemProperty($a_txt, $a_val)
Add list item property.
+ Here is the call graph for this function:

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