ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 25 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 70 of file class.ilOrgUnitPermissionQueries.php.

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

◆ getAllTemplateSetsForAllActivedContexts()

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

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

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

◆ getPermissionRepo()

static ilOrgUnitPermissionQueries::getPermissionRepo ( )
staticprotected

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

References $dic, and ilOrgUnitLocalDIC\dic().

30  {
31  if (!isset(self::$permissionRepo)) {
33  self::$permissionRepo = $dic["repo.Permissions"];
34  }
35 
36  return self::$permissionRepo;
37  }
$dic
Definition: ltiresult.php:33
+ Here is the call graph for this function:

◆ getSetForRefId()

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

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

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

◆ getTemplateSetForContextName()

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

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

Referenced by ilObjEmployeeTalkAccess\canCreate(), ilObjEmployeeTalkAccess\getCurrentUsersId(), and ilEmployeeTalkMyStaffListGUI\loadTabs().

43  {
44  return self::getPermissionRepo()->getDefaultForContext($context_name, (int) $position_id, $editable);
45  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ 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 50 of file class.ilOrgUnitPermissionQueries.php.

50  : bool
51  {
52  if (self::getPermissionRepo()->find($ref_id, $position_id)) {
53  return true;
54  }
55 
56  return false;
57  }
$ref_id
Definition: ltiauth.php:66

◆ removeLocalSetForRefId()

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

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

78  : bool
79  {
80  return self::getPermissionRepo()->delete($ref_id, $position_id);
81  }
$ref_id
Definition: ltiauth.php:66

Field Documentation

◆ $permissionRepo

ilOrgUnitPermissionDBRepository ilOrgUnitPermissionQueries::$permissionRepo
staticprotected

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


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