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

Class ilAppointmentPresentationEmployeeTalkGUI ilAppointmentPresentationEmployeeTalkGUI: ilCalendarAppointmentPresentationGUI. More...

+ Inheritance diagram for ilAppointmentPresentationEmployeeTalkGUI:
+ Collaboration diagram for ilAppointmentPresentationEmployeeTalkGUI:

Public Member Functions

 __construct (array $a_appointment, ?ilInfoScreenGUI $a_info_screen, ?ilToolbarGUI $a_toolbar, ?Item $a_list_item)
 ilAppointmentPresentationEmployeeTalkGUI constructor. More...
 
 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...
 

Private Member Functions

 getTalkGoto (int $ref_id)
 

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

Constructor & Destructor Documentation

◆ __construct()

ilAppointmentPresentationEmployeeTalkGUI::__construct ( array  $a_appointment,
?ilInfoScreenGUI  $a_info_screen,
?ilToolbarGUI  $a_toolbar,
?Item  $a_list_item 
)

ilAppointmentPresentationEmployeeTalkGUI constructor.

Definition at line 34 of file class.ilAppointmentPresentationEmployeeTalkGUI.php.

References ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), and ilObjEmployeeTalk\TYPE.

39  {
40  parent::__construct($a_appointment, $a_info_screen, $a_toolbar, $a_list_item);
41 
42  $this->lng->loadLanguageModule(ilObjEmployeeTalk::TYPE);
43  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ collectPropertiesAndActions()

ilAppointmentPresentationEmployeeTalkGUI::collectPropertiesAndActions ( )

Definition at line 45 of file class.ilAppointmentPresentationEmployeeTalkGUI.php.

References ilAppointmentPresentationGUI\$appointment, ilObject\_getAllReferences(), ilAppointmentPresentationGUI\addAction(), ilAppointmentPresentationGUI\addEventDescription(), ilAppointmentPresentationGUI\addEventLocation(), ilAppointmentPresentationGUI\addInfoProperty(), ilAppointmentPresentationGUI\addInfoSection(), ilAppointmentPresentationGUI\addLastUpdate(), ilAppointmentPresentationGUI\addListItemProperty(), ilAppointmentPresentationGUI\addObjectLinks(), ilAppointmentPresentationGUI\getObjIdForAppointment(), getTalkGoto(), ilAppointmentPresentationGUI\getUserName(), and ILIAS\Repository\lng().

45  : void
46  {
47  $talk = new ilObjEmployeeTalk($this->getObjIdForAppointment(), false);
48 
49  $superior = $this->getUserName($talk->getOwner(), true);
50  $employee = $this->getUserName($talk->getData()->getEmployee(), true);
51 
52  $this->addObjectLinks($talk->getId(), $this->appointment);
53 
54  // get talk ref id (this is possible, since talks only have one ref id)
55  $refs = ilObject::_getAllReferences($talk->getId());
56  $etalRef = current($refs);
57  $this->addAction($this->lng->txt("etal_open"), $this->getTalkGoto($etalRef));
58 
59  $this->addInfoSection($this->lng->txt('obj_etal'));
60  $this->addInfoProperty($this->lng->txt('title'), $talk->getTitle());
61  $this->addEventDescription($this->appointment);
62 
63  $this->addEventLocation($this->appointment);
64  $this->addLastUpdate($this->appointment);
65  $this->addListItemProperty($this->lng->txt("il_orgu_superior"), $superior);
66  $this->addListItemProperty($this->lng->txt("il_orgu_employee"), $employee);
67 
68  $this->addInfoProperty($this->lng->txt("il_orgu_superior"), $superior);
69  $this->addInfoProperty($this->lng->txt("il_orgu_employee"), $employee);
70 
71  parent::collectPropertiesAndActions();
72  }
addObjectLinks(int $obj_id, ?array $a_appointment=null)
Add object link.
addListItemProperty(string $a_txt, string $a_val)
Add list item property.
static _getAllReferences(int $id)
get all reference ids for object ID
addEventDescription(array $a_app)
Add event description.
addInfoSection(string $a_txt)
Add info section.
addInfoProperty(string $a_txt, string $a_val)
Add info property.
addLastUpdate(array $a_app)
Add last update.
addEventLocation(array $a_app)
Add event location.
getUserName(int $a_user_id, bool $a_force_name=false)
Get (linked if possible) user name.
addAction(string $a_txt, string $a_link)
Add action.
+ Here is the call graph for this function:

◆ getTalkGoto()

ilAppointmentPresentationEmployeeTalkGUI::getTalkGoto ( int  $ref_id)
private

Definition at line 74 of file class.ilAppointmentPresentationEmployeeTalkGUI.php.

References CLIENT_ID, and ilObjEmployeeTalk\TYPE.

Referenced by collectPropertiesAndActions().

74  : string
75  {
76  return ILIAS_HTTP_PATH . '/goto.php?target=' . ilObjEmployeeTalk::TYPE . '_' .
77  $ref_id . '&client_id=' . CLIENT_ID;
78  }
$ref_id
Definition: ltiauth.php:67
const CLIENT_ID
Definition: constants.php:41
+ Here is the caller graph for this function:

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