ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilOrgUnitPermissionQueries Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilOrgUnitPermissionQueries:

Static Public Member Functions

static getTemplateSetForContextName (string $context_name, string $position_id, bool $editable=false)
 
static hasLocalSet (int $ref_id, int $position_id)
 
static getSetForRefId (int $ref_id, int $position_id)
 
static findOrCreateSetForRefId (int $ref_id, int $position_id)
 
static removeLocalSetForRefId (int $ref_id, int $position_id)
 
static getAllTemplateSetsForAllActivedContexts (int $position_id, bool $editable=false)
 

Static Protected Member Functions

static getPermissionRepo ()
 

Static Protected Attributes

static ilOrgUnitPermissionDBRepository $permissionRepo
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilOrgUnitPermissionQueries

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Deprecated:
Please use OrgUnitPermissionRepository

Definition at line 24 of file class.ilOrgUnitPermissionQueries.php.

Member Function Documentation

◆ findOrCreateSetForRefId()

static ilOrgUnitPermissionQueries::findOrCreateSetForRefId ( int  $ref_id,
int  $position_id 
)
static
Deprecated:
Please use get() from OrgUnitPermissionRepository

Definition at line 69 of file class.ilOrgUnitPermissionQueries.php.

70 {
71 return self::getPermissionRepo()->get($ref_id, $position_id);
72 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ref_id
Definition: ltiauth.php:66

References $ref_id, and getPermissionRepo().

+ Here is the call graph for this function:

◆ getAllTemplateSetsForAllActivedContexts()

static ilOrgUnitPermissionQueries::getAllTemplateSetsForAllActivedContexts ( int  $position_id,
bool  $editable = false 
)
static
Deprecated:
Please use getDefaultsForActiveContexts() from OrgUnitPermissionRepository

Definition at line 85 of file class.ilOrgUnitPermissionQueries.php.

85 : array
86 {
87 return self::getPermissionRepo()->getDefaultsForActiveContexts($position_id, $editable);
88 }

References getPermissionRepo().

+ Here is the call graph for this function:

◆ getPermissionRepo()

static ilOrgUnitPermissionQueries::getPermissionRepo ( )
staticprotected

Definition at line 28 of file class.ilOrgUnitPermissionQueries.php.

29 {
30 if (!isset(self::$permissionRepo)) {
32 self::$permissionRepo = $dic["repo.Permissions"];
33 }
34
36 }
static ilOrgUnitPermissionDBRepository $permissionRepo
$dic
Definition: ltiresult.php:33

References $dic, $permissionRepo, and ilOrgUnitLocalDIC\dic().

Referenced by findOrCreateSetForRefId(), getAllTemplateSetsForAllActivedContexts(), getSetForRefId(), getTemplateSetForContextName(), and removeLocalSetForRefId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSetForRefId()

static ilOrgUnitPermissionQueries::getSetForRefId ( int  $ref_id,
int  $position_id 
)
static
Deprecated:
Please use getLocalorDefault() from OrgUnitPermissionRepository

Definition at line 61 of file class.ilOrgUnitPermissionQueries.php.

62 {
63 return self::getPermissionRepo()->getLocalorDefault($ref_id, $position_id);
64 }

References $ref_id, and getPermissionRepo().

+ Here is the call graph for this function:

◆ getTemplateSetForContextName()

static ilOrgUnitPermissionQueries::getTemplateSetForContextName ( string  $context_name,
string  $position_id,
bool  $editable = false 
)
static
Deprecated:
Please use getDefaultForContext() from OrgUnitPermissionRepository

Definition at line 41 of file class.ilOrgUnitPermissionQueries.php.

42 {
43 return self::getPermissionRepo()->getDefaultForContext($context_name, (int) $position_id, $editable);
44 }

References getPermissionRepo().

Referenced by ilObjEmployeeTalkAccess\canCreate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasLocalSet()

static ilOrgUnitPermissionQueries::hasLocalSet ( int  $ref_id,
int  $position_id 
)
static
Deprecated:
Please use find() from OrgUnitPermissionRepository

Definition at line 49 of file class.ilOrgUnitPermissionQueries.php.

49 : bool
50 {
51 if (self::getPermissionRepo()->find($ref_id, $position_id)) {
52 return true;
53 }
54
55 return false;
56 }

References $ref_id.

◆ removeLocalSetForRefId()

static ilOrgUnitPermissionQueries::removeLocalSetForRefId ( int  $ref_id,
int  $position_id 
)
static
Deprecated:
Please use delete() from OrgUnitPermissionRepository

Definition at line 77 of file class.ilOrgUnitPermissionQueries.php.

77 : bool
78 {
79 return self::getPermissionRepo()->delete($ref_id, $position_id);
80 }

References $ref_id, and getPermissionRepo().

+ Here is the call graph for this function:

Field Documentation

◆ $permissionRepo

ilOrgUnitPermissionDBRepository ilOrgUnitPermissionQueries::$permissionRepo
staticprotected

Definition at line 26 of file class.ilOrgUnitPermissionQueries.php.

Referenced by getPermissionRepo().


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