ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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:65

◆ 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  }

◆ getPermissionRepo()

static ilOrgUnitPermissionQueries::getPermissionRepo ( )
staticprotected

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

References $dic, and ilOrgUnitLocalDIC\dic().

29  {
30  if (!isset(self::$permissionRepo)) {
32  self::$permissionRepo = $dic["repo.Permissions"];
33  }
34 
35  return self::$permissionRepo;
36  }
$dic
Definition: result.php:31
+ 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 61 of file class.ilOrgUnitPermissionQueries.php.

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

◆ 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.

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

42  {
43  return self::getPermissionRepo()->getDefaultForContext($context_name, (int) $position_id, $editable);
44  }
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 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  }
$ref_id
Definition: ltiauth.php:65

◆ 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  }
$ref_id
Definition: ltiauth.php:65

Field Documentation

◆ $permissionRepo

ilOrgUnitPermissionDBRepository ilOrgUnitPermissionQueries::$permissionRepo
staticprotected

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


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