ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 ()
 
 executeCommand ()
 

Protected Member Functions

 hasCurrentUserAccess ()
 
 loadHeader ()
 
 loadTabs ()
 
 loadTalkData ()
 
 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 ( )

Reimplemented from ilEmployeeTalkMyStaffBaseGUI.

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

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 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getClassPath()

ilEmployeeTalkMyStaffUserGUI::getClassPath ( )
Returns
string[]

Reimplemented from ilEmployeeTalkMyStaffBaseGUI.

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

Reimplemented from ilEmployeeTalkMyStaffBaseGUI.

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

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 }

References ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ loadHeader()

ilEmployeeTalkMyStaffUserGUI::loadHeader ( )
protected

Reimplemented from ilEmployeeTalkMyStaffBaseGUI.

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

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

◆ loadTabs()

ilEmployeeTalkMyStaffUserGUI::loadTabs ( )
protected

Reimplemented from ilEmployeeTalkMyStaffBaseGUI.

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

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

◆ loadTalkData()

ilEmployeeTalkMyStaffUserGUI::loadTalkData ( )
protected
Returns
EmployeeTalk[]

Reimplemented from ilEmployeeTalkMyStaffBaseGUI.

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

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 }

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

+ 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: