ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilOrgUnitOperationQueries Class Reference

Class ilOrgUnitOperationQueries. More...

+ Collaboration diagram for ilOrgUnitOperationQueries:

Static Public Member Functions

static registerNewOperationForMultipleContexts ($operation_name, $description, array $contexts)
 
static findById ($operation_id)
 
static findByOperationString ($operation_string, $context_name)
 

Detailed Description

Member Function Documentation

◆ findById()

static ilOrgUnitOperationQueries::findById (   $operation_id)
static
Parameters
int$operation_id
Returns

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

References ActiveRecord\findOrFail().

Referenced by ilPermissionGUI\savePositionsPermissions(), and ilOrgUnitPermission\wakeUp().

104  {
105  return ilOrgUnitOperation::findOrFail($operation_id);
106  }
static findOrFail($primary_key, array $add_constructor_args=array())
Tries to find the object and throws an Exception if object is not found, instead of returning null...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findByOperationString()

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

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

References $context, ilOrgUnitOperationContextQueries\findByName(), and ActiveRecord\where().

Referenced by ilOrgUnitPositionAccess\checkPositionAccess(), ilMyStaffAccess\countOrgusOfUserWithAtLeastOneOperation(), ilOrgUnitPositionAccess\filterUserIdsByPositionOfUser(), ilMyStaffAccess\getUsersForUser(), and ilMyStaffAccess\hasCurrentUserAccessToMyStaff().

115  {
117 
118  return ilOrgUnitOperation::where([ 'operation_string' => $operation_string, 'context_id' => $context->getId() ])->first();
119  }
$context
Definition: webdav.php:25
static where($where, $operator=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerNewOperationForMultipleContexts()

static ilOrgUnitOperationQueries::registerNewOperationForMultipleContexts (   $operation_name,
  $description,
array  $contexts 
)
static
Parameters
$operation_name
$description
array$contexts
See also
registerNewOperation

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

References $context, $description, ilOrgUnitOperationContextQueries\findById(), ilOrgUnitOperationContextQueries\findByName(), and ActiveRecord\where().

57  {
58  foreach ($contexts as $context) {
59  self::registerNewOperation($operation_name, $description, $context);
60  }
61  }
$context
Definition: webdav.php:25
+ Here is the call graph for this function:

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