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

Static Public Member Functions

static registerNewOperation (string $operation_name, string $description, string $context=ilOrgUnitOperationContext::CONTEXT_OBJECT)
 
static registerNewOperationForMultipleContexts (string $operation_name, string $description, array $contexts)
 
static getOperationsForContextName (string $context_name)
 
static getOperationsForContextId (string $context_id)
 
static findById (int $operation_id)
 @deprecated Please use get() from OrgUnitOperationRepository for operation name Operations should not be referenced by Id More...
 
static findByOperationString (string $operation_string, string $context_name)
 @deprecated Please use find() from OrgUnitOperationRepository More...
 

Static Protected Member Functions

static getOperationRepo ()
 

Static Protected Attributes

static ilOrgUnitOperationDBRepository $operationRepo
 

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 ilOrgUnitOperationQueries

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

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

Member Function Documentation

◆ findById()

static ilOrgUnitOperationQueries::findById ( int  $operation_id)
static

@deprecated Please use get() from OrgUnitOperationRepository for operation name Operations should not be referenced by Id

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

83  {
84  return self::getOperationRepo()->getById($operation_id);
85  }

◆ findByOperationString()

static ilOrgUnitOperationQueries::findByOperationString ( string  $operation_string,
string  $context_name 
)
static

◆ getOperationRepo()

static ilOrgUnitOperationQueries::getOperationRepo ( )
staticprotected

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

References $dic, and ilOrgUnitLocalDIC\dic().

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

◆ getOperationsForContextId()

static ilOrgUnitOperationQueries::getOperationsForContextId ( string  $context_id)
static
Deprecated:
Please use getOperationsByContextId() from OrgUnitOperationRepository
Returns
ilOrgUnitOperation[]

Definition at line 73 of file class.ilOrgUnitOperationQueries.php.

73  : array
74  {
75  return self::getOperationRepo()->getOperationsByContextId($context_id);
76  }

◆ getOperationsForContextName()

static ilOrgUnitOperationQueries::getOperationsForContextName ( string  $context_name)
static
Deprecated:
Please use getOperationsByContextName() from OrgUnitOperationRepository
Returns
ilOrgUnitOperation[]

Definition at line 64 of file class.ilOrgUnitOperationQueries.php.

64  : array
65  {
66  return self::getOperationRepo()->getOperationsByContextName($context_name);
67  }

◆ registerNewOperation()

static ilOrgUnitOperationQueries::registerNewOperation ( string  $operation_name,
string  $description,
string  $context = ilOrgUnitOperationContext::CONTEXT_OBJECT 
)
static
Deprecated:
Please use get() from OrgUnitOperationRepository

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

References $context.

45  : void {
46  self::getOperationRepo()->get($operation_name, $description, [$context]);
47  }
$context
Definition: webdav.php:31

◆ registerNewOperationForMultipleContexts()

static ilOrgUnitOperationQueries::registerNewOperationForMultipleContexts ( string  $operation_name,
string  $description,
array  $contexts 
)
static
Deprecated:
Please use get() from OrgUnitOperationRepository

Definition at line 52 of file class.ilOrgUnitOperationQueries.php.

56  : void {
57  self::getOperationRepo()->get($operation_name, $description, $contexts);
58  }

Field Documentation

◆ $operationRepo

ilOrgUnitOperationDBRepository ilOrgUnitOperationQueries::$operationRepo
staticprotected

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


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