ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilEmployeeTalkMyStaffUserGUI Class Reference
+ Inheritance diagram for ilEmployeeTalkMyStaffUserGUI:
+ Collaboration diagram for ilEmployeeTalkMyStaffUserGUI:

Public Member Functions

 __construct ()
 
 getClassPath ()
 
- Public Member Functions inherited from ilEmployeeTalkMyStaffBaseGUI
 __construct ()
 
 executeCommand ()
 
 getClassPath ()
 

Protected Member Functions

 hasCurrentUserAccess ()
 
 loadHeader ()
 
 loadTabs ()
 
 loadTalkData ()
 
- Protected Member Functions inherited from ilEmployeeTalkMyStaffBaseGUI
 hasCurrentUserAccess ()
 
 loadHeader ()
 
 loadTabs ()
 
 loadTalkData ()
 

Private Attributes

int $usr_id
 

Additional Inherited Members

- Protected Attributes inherited from ilEmployeeTalkMyStaffBaseGUI
UIServices $ui
 
ilLanguage $language
 
ilTabsGUI $tabs
 
ilMyStaffAccess $access
 
ilCtrl $ctrl
 
ilObjUser $current_user
 
EmployeeTalkRepository $repository
 
ilObjEmployeeTalkAccess $talk_access
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilEmployeeTalkMyStaffUserGUI::__construct ( )

Definition at line 33 of file class.ilEmployeeTalkMyStaffUserGUI.php.

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\ctrl().

34  {
35  global $DIC;
36 
38 
39  if ($DIC->http()->wrapper()->query()->has('usr_id')) {
40  $this->usr_id = $DIC->http()->wrapper()->query()->retrieve(
41  'usr_id',
42  $DIC->refinery()->kindlyTo()->int()
43  );
44  $this->ctrl->setParameter($this, 'usr_id', $this->usr_id);
45  }
46  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getClassPath()

ilEmployeeTalkMyStaffUserGUI::getClassPath ( )

Definition at line 64 of file class.ilEmployeeTalkMyStaffUserGUI.php.

64  : array
65  {
66  return [
67  strtolower(ilDashboardGUI::class),
68  strtolower(ilMyStaffGUI::class),
69  strtolower(ilMStShowUserGUI::class),
70  strtolower(ilEmployeeTalkMyStaffUserGUI::class)
71  ];
72  }

◆ hasCurrentUserAccess()

ilEmployeeTalkMyStaffUserGUI::hasCurrentUserAccess ( )
protected

Definition at line 48 of file class.ilEmployeeTalkMyStaffUserGUI.php.

References ILIAS\Repository\access().

48  : bool
49  {
50  if (!$this->usr_id) {
51  return false;
52  }
53 
54  if (
55  !$this->access->hasCurrentUserAccessToTalks() ||
56  !$this->access->hasCurrentUserAccessToUser($this->usr_id)
57  ) {
58  return false;
59  }
60 
61  return true;
62  }
+ Here is the call graph for this function:

◆ loadHeader()

ilEmployeeTalkMyStaffUserGUI::loadHeader ( )
protected

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

74  : void
75  {
76  // header is set by MyStaff
77  }

◆ loadTabs()

ilEmployeeTalkMyStaffUserGUI::loadTabs ( )
protected

Definition at line 79 of file class.ilEmployeeTalkMyStaffUserGUI.php.

79  : void
80  {
81  // tabs are set by MyStaff
82  }

◆ loadTalkData()

ilEmployeeTalkMyStaffUserGUI::loadTalkData ( )
protected

Definition at line 84 of file class.ilEmployeeTalkMyStaffUserGUI.php.

References ILIAS\UI\examples\Deck\repository().

84  : array
85  {
86  $talks = [];
87  if ($this->talk_access->hasPermissionToReadUnownedTalksOfUser($this->usr_id)) {
88  $talks = $this->repository->findByEmployee($this->usr_id);
89  } else {
90  $talks = $this->repository->findTalksBetweenEmployeeAndOwner(
91  $this->usr_id,
92  $this->current_user->getId()
93  );
94  }
95  return $talks;
96  }
repository()
description: > Example for rendering a repository card
Definition: repository.php:33
+ Here is the call graph for this function:

Field Documentation

◆ $usr_id

int ilEmployeeTalkMyStaffUserGUI::$usr_id
private

Definition at line 31 of file class.ilEmployeeTalkMyStaffUserGUI.php.


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