ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Skill\Access\SkillTreeAccess Class Reference

Skill tree access. More...

+ Collaboration diagram for ILIAS\Skill\Access\SkillTreeAccess:

Public Member Functions

 __construct (\ilRbacSystem $access, int $ref_id, int $usr_id)
 
 hasVisibleTreePermission (int $a_usr_id=0)
 
 hasReadTreePermission (int $a_usr_id=0)
 
 hasEditTreeSettingsPermission (int $a_usr_id=0)
 
 hasEditTreePermissionsPermission (int $a_usr_id=0)
 
 hasReadCompetencesPermission (int $a_usr_id=0)
 
 hasManageCompetencesPermission (int $a_usr_id=0)
 
 hasManageCompetenceTemplatesPermission (int $a_usr_id=0)
 
 hasReadProfilesPermission (int $a_usr_id=0)
 
 hasManageProfilesPermission (int $a_usr_id=0)
 

Protected Attributes

ilRbacSystem $access
 
int $ref_id = 0
 
string $obj_type = ""
 
int $usr_id = 0
 

Detailed Description

Skill tree access.

Author
Thomas Famula famul.nosp@m.a@le.nosp@m.ifos..nosp@m.de

Definition at line 27 of file class.SkillTreeAccess.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Skill\Access\SkillTreeAccess::__construct ( \ilRbacSystem  $access,
int  $ref_id,
int  $usr_id 
)

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

35 {
36 $this->access = $access;
37 $this->ref_id = $ref_id;
38 $this->obj_type = \ilObject::_lookupType($this->ref_id, true);
39 $this->usr_id = $usr_id;
40 }
static _lookupType(int $id, bool $reference=false)

References ILIAS\Skill\Access\SkillTreeAccess\$access, ILIAS\Skill\Access\SkillTreeAccess\$ref_id, ILIAS\Skill\Access\SkillTreeAccess\$usr_id, ilObject\_lookupType(), and ILIAS\Repository\access().

+ Here is the call graph for this function:

Member Function Documentation

◆ hasEditTreePermissionsPermission()

ILIAS\Skill\Access\SkillTreeAccess::hasEditTreePermissionsPermission ( int  $a_usr_id = 0)

Definition at line 66 of file class.SkillTreeAccess.php.

66 : bool
67 {
68 if ($a_usr_id == 0) {
69 $a_usr_id = $this->usr_id;
70 }
71 return $this->access->checkAccessOfUser($a_usr_id, "edit_permission", $this->ref_id);
72 }

References ILIAS\Skill\Access\SkillTreeAccess\$usr_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ hasEditTreeSettingsPermission()

ILIAS\Skill\Access\SkillTreeAccess::hasEditTreeSettingsPermission ( int  $a_usr_id = 0)

Definition at line 58 of file class.SkillTreeAccess.php.

58 : bool
59 {
60 if ($a_usr_id == 0) {
61 $a_usr_id = $this->usr_id;
62 }
63 return $this->access->checkAccessOfUser($a_usr_id, "write", $this->ref_id);
64 }

References ILIAS\Skill\Access\SkillTreeAccess\$usr_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ hasManageCompetencesPermission()

ILIAS\Skill\Access\SkillTreeAccess::hasManageCompetencesPermission ( int  $a_usr_id = 0)

Definition at line 82 of file class.SkillTreeAccess.php.

82 : bool
83 {
84 if ($a_usr_id == 0) {
85 $a_usr_id = $this->usr_id;
86 }
87 return $this->access->checkAccessOfUser($a_usr_id, "manage_comp", $this->ref_id);
88 }

References ILIAS\Skill\Access\SkillTreeAccess\$usr_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ hasManageCompetenceTemplatesPermission()

ILIAS\Skill\Access\SkillTreeAccess::hasManageCompetenceTemplatesPermission ( int  $a_usr_id = 0)

Definition at line 90 of file class.SkillTreeAccess.php.

90 : bool
91 {
92 if ($a_usr_id == 0) {
93 $a_usr_id = $this->usr_id;
94 }
95 return $this->access->checkAccessOfUser($a_usr_id, "manage_comp_temp", $this->ref_id);
96 }

References ILIAS\Skill\Access\SkillTreeAccess\$usr_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ hasManageProfilesPermission()

ILIAS\Skill\Access\SkillTreeAccess::hasManageProfilesPermission ( int  $a_usr_id = 0)

Definition at line 109 of file class.SkillTreeAccess.php.

109 : bool
110 {
111 if ($a_usr_id == 0) {
112 $a_usr_id = $this->usr_id;
113 }
114 if ($this->obj_type == "crs" || $this->obj_type == "grp") {
115 return $this->access->checkAccessOfUser($a_usr_id, "write", $this->ref_id);
116 }
117 return $this->access->checkAccessOfUser($a_usr_id, "manage_profiles", $this->ref_id);
118 }

References ILIAS\Skill\Access\SkillTreeAccess\$usr_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ hasReadCompetencesPermission()

ILIAS\Skill\Access\SkillTreeAccess::hasReadCompetencesPermission ( int  $a_usr_id = 0)

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

74 : bool
75 {
76 if ($a_usr_id == 0) {
77 $a_usr_id = $this->usr_id;
78 }
79 return $this->access->checkAccessOfUser($a_usr_id, "read_comp", $this->ref_id);
80 }

References ILIAS\Skill\Access\SkillTreeAccess\$usr_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ hasReadProfilesPermission()

ILIAS\Skill\Access\SkillTreeAccess::hasReadProfilesPermission ( int  $a_usr_id = 0)

Definition at line 98 of file class.SkillTreeAccess.php.

98 : bool
99 {
100 if ($a_usr_id == 0) {
101 $a_usr_id = $this->usr_id;
102 }
103 if ($this->obj_type == "crs" || $this->obj_type == "grp") {
104 return $this->access->checkAccessOfUser($a_usr_id, "read", $this->ref_id);
105 }
106 return $this->access->checkAccessOfUser($a_usr_id, "read_profiles", $this->ref_id);
107 }

References ILIAS\Skill\Access\SkillTreeAccess\$usr_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ hasReadTreePermission()

ILIAS\Skill\Access\SkillTreeAccess::hasReadTreePermission ( int  $a_usr_id = 0)

Definition at line 50 of file class.SkillTreeAccess.php.

50 : bool
51 {
52 if ($a_usr_id == 0) {
53 $a_usr_id = $this->usr_id;
54 }
55 return $this->access->checkAccessOfUser($a_usr_id, "read", $this->ref_id);
56 }

References ILIAS\Skill\Access\SkillTreeAccess\$usr_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

◆ hasVisibleTreePermission()

ILIAS\Skill\Access\SkillTreeAccess::hasVisibleTreePermission ( int  $a_usr_id = 0)

Definition at line 42 of file class.SkillTreeAccess.php.

42 : bool
43 {
44 if ($a_usr_id == 0) {
45 $a_usr_id = $this->usr_id;
46 }
47 return $this->access->checkAccessOfUser($a_usr_id, "visible", $this->ref_id);
48 }

References ILIAS\Skill\Access\SkillTreeAccess\$usr_id, and ILIAS\Repository\access().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilRbacSystem ILIAS\Skill\Access\SkillTreeAccess::$access
protected

◆ $obj_type

string ILIAS\Skill\Access\SkillTreeAccess::$obj_type = ""
protected

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

◆ $ref_id

int ILIAS\Skill\Access\SkillTreeAccess::$ref_id = 0
protected

◆ $usr_id


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