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

Class ilOrgUnitOperationContextQueries. More...

+ Collaboration diagram for ilOrgUnitOperationContextQueries:

Static Public Member Functions

static findByName ($context_name)
 
static findById ($id)
 
static findByRefId ($ref_id)
 
static findByObjId ($obj_id)
 

Static Protected Attributes

static $instance_by_name = array()
 

Detailed Description

Member Function Documentation

◆ findById()

static ilOrgUnitOperationContextQueries::findById (   $id)
static
Parameters
int$id
Returns

Definition at line 68 of file class.ilOrgUnitOperationContextQueries.php.

References $id.

Referenced by ilOrgUnitPermission\afterObjectLoad(), and ilOrgUnitOperationQueries\registerNewOperationForMultipleContexts().

69  {
70  return ilOrgUnitOperationContext::find($id);
71  }
if(!array_key_exists('StateId', $_REQUEST)) $id
+ Here is the caller graph for this function:

◆ findByName()

static ilOrgUnitOperationContextQueries::findByName (   $context_name)
static
Parameters
$context_name
Returns

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

References ActiveRecord\where().

Referenced by ilOrgUnitOperationQueries\findByOperationString(), ilOrgUnitPermissionQueries\getTemplateSetForContextName(), and ilOrgUnitOperationQueries\registerNewOperationForMultipleContexts().

53  {
54  if (!isset(self::$instance_by_name[$context_name])) {
55  self::$instance_by_name[$context_name] = ilOrgUnitOperationContext::where(array( 'context' => $context_name ))
56  ->first();
57  }
58 
59  return self::$instance_by_name[$context_name];
60  }
static where($where, $operator=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findByObjId()

static ilOrgUnitOperationContextQueries::findByObjId (   $obj_id)
static
Parameters
int$obj_id
Returns

Definition at line 92 of file class.ilOrgUnitOperationContextQueries.php.

References ilObject2\_lookupType().

93  {
94  $type_context = ilObject2::_lookupType($obj_id, false);
95 
96  return self::findByName($type_context);
97  }
static _lookupType($a_id, $a_reference=false)
+ Here is the call graph for this function:

◆ findByRefId()

static ilOrgUnitOperationContextQueries::findByRefId (   $ref_id)
static
Parameters
int$ref_id
Returns

Definition at line 79 of file class.ilOrgUnitOperationContextQueries.php.

References ilObject2\_lookupType().

Referenced by ilOrgUnitPermissionQueries\getContextByRefId().

80  {
81  $type_context = ilObject2::_lookupType($ref_id, true);
82 
83  return self::findByName($type_context);
84  }
static _lookupType($a_id, $a_reference=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $instance_by_name

ilOrgUnitOperationContextQueries::$instance_by_name = array()
staticprotected

Definition at line 44 of file class.ilOrgUnitOperationContextQueries.php.


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