ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilOrgUnitOperationContext Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilOrgUnitOperationContext:
+ Collaboration diagram for ilOrgUnitOperationContext:

Public Member Functions

 getPopulatedContextNames ()
 
 getPopulatedContextIds ()
 
 getId ()
 
 setId (?int $id)
 
 getContext ()
 
 setContext (string $context)
 
 getParentContextId ()
 
 setParentContextId (int $parent_context_id)
 
 create ()
 
- Public Member Functions inherited from ActiveRecord
 getArConnector ()
 
 getArFieldList ()
 
 getConnectorContainerName ()
 Return the Name of your Connector Table More...
 
 setConnectorContainerName (string $connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct ($primary_key=0)
 
 storeObjectToCache ()
 
 asStdClass ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, $value)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 getArrayForConnector ()
 
 installConnector ()
 
 store ()
 
 save ()
 
 create ()
 
 copy (int $new_id=0)
 
 afterObjectLoad ()
 
 read ()
 
 update ()
 
 delete ()
 
 __call ($name, $arguments)
 

Static Public Member Functions

static returnDbTableName ()
 
- Static Public Member Functions inherited from ActiveRecord
static returnDbTableName ()
 
static installDB ()
 
static renameDBField (string $old_name, string $new_name)
 
static tableExists ()
 
static fieldExists (string $field_name)
 
static removeDBField (string $field_name)
 
static updateDB ()
 
static resetDB ()
 
static truncateDB ()
 
static flushDB ()
 never use in ILIAS Core, Plugins only More...
 
static preloadObjects ()
 
static additionalParams (array $additional_params)
 
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. More...
 
static findOrGetInstance ($primary_key, array $add_constructor_args=array())
 
static where ($where, $operator=null)
 
static innerjoinAR (ActiveRecord $ar, $on_this, $on_external, array $fields=array(' *'), string $operator='=', $both_external=false)
 
static innerjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false)
 
static leftjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false)
 
static orderBy ($orderBy, string $orderDirection='ASC')
 
static dateFormat (string $date_format='d.m.Y - H:i:s')
 
static limit ($start, $end)
 
static affectedRows ()
 
static count ()
 
static get ()
 
static debug ()
 
static first ()
 
static getCollection ()
 
static last ()
 
static getFirstFromLastQuery ()
 
static connector (arConnector $connector)
 
static raw (bool $set_raw=true)
 
static getArray (?string $key=null, $values=null)
 
static _toCamelCase (string $str, bool $capitalise_first_char=false)
 

Data Fields

const CONTEXT_OBJECT = "object"
 
const CONTEXT_CRS = "crs"
 
const CONTEXT_GRP = "grp"
 
const CONTEXT_IASS = "iass"
 
const CONTEXT_TST = "tst"
 
const CONTEXT_EXC = "exc"
 
const CONTEXT_SVY = "svy"
 
const CONTEXT_USRF = "usrf"
 
const CONTEXT_PRG = "prg"
 
const CONTEXT_ETAL = "etal"
 

Static Public Attributes

static array $available_contexts
 

Protected Attributes

int $id = 0
 
string $context = self::CONTEXT_OBJECT
 
int $parent_context_id = 0
 
- Protected Attributes inherited from ActiveRecord
bool $ar_safe_read = true
 
string $connector_container_name = ''
 
bool $is_new = true
 

Additional Inherited Members

- Protected Member Functions inherited from ActiveRecord
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 Returns an instance of the instatiated calling active record (needs to be done in static methods) : This should be cached somehow More...
 
static fromCamelCase (string $str)
 

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 ilOrgUnitOperationContext

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 23 of file class.ilOrgUnitOperationContext.php.

Member Function Documentation

◆ create()

ilOrgUnitOperationContext::create ( )

Definition at line 136 of file class.ilOrgUnitOperationContext.php.

References getContext(), and getParentContextId().

136  : void
137  {
138  if (self::where(array('context' => $this->getContext()))->hasSets()) {
139  throw new ilException('Context already registered');
140  }
141  parent::create();
142  }
+ Here is the call graph for this function:

◆ getContext()

ilOrgUnitOperationContext::getContext ( )

Definition at line 111 of file class.ilOrgUnitOperationContext.php.

References $context.

Referenced by create(), and getPopulatedContextNames().

111  : string
112  {
113  return $this->context;
114  }
+ Here is the caller graph for this function:

◆ getId()

ilOrgUnitOperationContext::getId ( )

Definition at line 101 of file class.ilOrgUnitOperationContext.php.

References $id.

Referenced by getPopulatedContextIds().

101  : ?int
102  {
103  return $this->id;
104  }
+ Here is the caller graph for this function:

◆ getParentContextId()

ilOrgUnitOperationContext::getParentContextId ( )

Definition at line 121 of file class.ilOrgUnitOperationContext.php.

References $parent_context_id.

Referenced by create().

121  : int
122  {
124  }
+ Here is the caller graph for this function:

◆ getPopulatedContextIds()

ilOrgUnitOperationContext::getPopulatedContextIds ( )
Returns
string[]

Definition at line 66 of file class.ilOrgUnitOperationContext.php.

References getId().

66  : array
67  {
68  $contexts = array($this->getId());
69  $this->appendParentContextName($contexts);
70 
71  return $contexts;
72  }
+ Here is the call graph for this function:

◆ getPopulatedContextNames()

ilOrgUnitOperationContext::getPopulatedContextNames ( )
Returns
string[]

Definition at line 55 of file class.ilOrgUnitOperationContext.php.

References getContext().

55  : array
56  {
57  $contexts = array($this->getContext());
58  $this->appendParentContextName($contexts);
59 
60  return $contexts;
61  }
+ Here is the call graph for this function:

◆ returnDbTableName()

static ilOrgUnitOperationContext::returnDbTableName ( )
static

Definition at line 131 of file class.ilOrgUnitOperationContext.php.

131  : string
132  {
133  return 'il_orgu_op_contexts';
134  }

◆ setContext()

ilOrgUnitOperationContext::setContext ( string  $context)

Definition at line 116 of file class.ilOrgUnitOperationContext.php.

References $context.

116  : void
117  {
118  $this->context = $context;
119  }

◆ setId()

ilOrgUnitOperationContext::setId ( ?int  $id)

Definition at line 106 of file class.ilOrgUnitOperationContext.php.

References $id.

106  : void
107  {
108  $this->id = $id;
109  }

◆ setParentContextId()

ilOrgUnitOperationContext::setParentContextId ( int  $parent_context_id)

Definition at line 126 of file class.ilOrgUnitOperationContext.php.

References $parent_context_id.

127  {
128  $this->parent_context_id = $parent_context_id;
129  }

Field Documentation

◆ $available_contexts

array ilOrgUnitOperationContext::$available_contexts
static
Initial value:
= [
self::CONTEXT_OBJECT,
self::CONTEXT_CRS,
self::CONTEXT_GRP,
self::CONTEXT_IASS,
self::CONTEXT_TST,
self::CONTEXT_EXC,
self::CONTEXT_SVY,
self::CONTEXT_USRF,
self::CONTEXT_PRG,
self::CONTEXT_ETAL,
]

Definition at line 39 of file class.ilOrgUnitOperationContext.php.

Referenced by ILIAS\MyStaff\ilMyStaffAccess\getIdsForPositionAndOperation().

◆ $context

string ilOrgUnitOperationContext::$context = self::CONTEXT_OBJECT
protected

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

Referenced by getContext(), and setContext().

◆ $id

int ilOrgUnitOperationContext::$id = 0
protected

Definition at line 83 of file class.ilOrgUnitOperationContext.php.

Referenced by getId(), and setId().

◆ $parent_context_id

int ilOrgUnitOperationContext::$parent_context_id = 0
protected

Definition at line 99 of file class.ilOrgUnitOperationContext.php.

Referenced by getParentContextId(), and setParentContextId().

◆ CONTEXT_CRS

const ilOrgUnitOperationContext::CONTEXT_CRS = "crs"

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

◆ CONTEXT_ETAL

const ilOrgUnitOperationContext::CONTEXT_ETAL = "etal"

◆ CONTEXT_EXC

const ilOrgUnitOperationContext::CONTEXT_EXC = "exc"

Definition at line 30 of file class.ilOrgUnitOperationContext.php.

◆ CONTEXT_GRP

const ilOrgUnitOperationContext::CONTEXT_GRP = "grp"

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

◆ CONTEXT_IASS

const ilOrgUnitOperationContext::CONTEXT_IASS = "iass"

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

◆ CONTEXT_OBJECT

const ilOrgUnitOperationContext::CONTEXT_OBJECT = "object"

◆ CONTEXT_PRG

const ilOrgUnitOperationContext::CONTEXT_PRG = "prg"

Definition at line 33 of file class.ilOrgUnitOperationContext.php.

◆ CONTEXT_SVY

const ilOrgUnitOperationContext::CONTEXT_SVY = "svy"

Definition at line 31 of file class.ilOrgUnitOperationContext.php.

◆ CONTEXT_TST

const ilOrgUnitOperationContext::CONTEXT_TST = "tst"

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

◆ CONTEXT_USRF

const ilOrgUnitOperationContext::CONTEXT_USRF = "usrf"

Definition at line 32 of file class.ilOrgUnitOperationContext.php.


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