ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilOrgUnitOperationContext Class Reference

Class ilOrgUnitOperationContext. More...

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

Public Member Functions

 getPopulatedContextNames ()
 
 getPopulatedContextIds ()
 
 getId ()
 
 setId ($id)
 
 getContext ()
 
 setContext ($context)
 
 getParentContextId ()
 
 setParentContextId ($parent_context_id)
 
 create ()
 
- Public Member Functions inherited from ActiveRecord
 getArConnector ()
 
 getArFieldList ()
 
 getConnectorContainerName ()
 
 setConnectorContainerName ($connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct ($primary_key=0, arConnector $connector=null)
 
 storeObjectToCache ()
 
 __getConvertedDateFieldsAsArray ($format=null)
 
 __asCsv ($separator=';', $header=false)
 
 __asArray ()
 
 __asStdClass ()
 
 __asSerializedObject ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, $value)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 getArrayForDb ()
 
 getArrayForConnector ()
 
 installConnector ()
 
 store ()
 
 save ()
 
 create ()
 
 copy ($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 ($old_name, $new_name)
 
static tableExists ()
 
static fieldExists ($field_name)
 
static removeDBField ($field_name)
 
static updateDB ()
 
static resetDB ()
 
static truncateDB ()
 
static flushDB ()
 
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, $fields=array(' *'), $operator='=', $both_external=false)
 
static innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static orderBy ($orderBy, $orderDirection='ASC')
 
static dateFormat ($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 ($set_raw=true)
 
static getArray ($key=null, $values=null)
 
static _toCamelCase ($str, $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"
 
- Data Fields inherited from ActiveRecord
const ACTIVE_RECORD_VERSION = '2.0.7'
 

Protected Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from ActiveRecord
 serializeToCSV ($field)
 This method is called for every field of your instance if you use __asCsv. More...
 
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 
static fromCamelCase ($str)
 

Detailed Description

Member Function Documentation

◆ create()

ilOrgUnitOperationContext::create ( )

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

References array, getContext(), and getParentContextId().

138  {
139  if (self::where(array( 'context' => $this->getContext() ))->hasSets()) {
140  throw new ilException('Context already registered');
141  }
142  parent::create();
143  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getContext()

ilOrgUnitOperationContext::getContext ( )
Returns
string

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

References $context.

Referenced by create(), and getPopulatedContextNames().

+ Here is the caller graph for this function:

◆ getId()

ilOrgUnitOperationContext::getId ( )
Returns
int

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

References $id.

Referenced by getPopulatedContextIds().

+ Here is the caller graph for this function:

◆ getParentContextId()

ilOrgUnitOperationContext::getParentContextId ( )
Returns
int

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

References $parent_context_id.

Referenced by create().

+ Here is the caller graph for this function:

◆ getPopulatedContextIds()

ilOrgUnitOperationContext::getPopulatedContextIds ( )
Returns
array if own and

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

References array, and getId().

35  {
36  $contexts = array( $this->getId() );
37  $this->appendParentContextName($contexts);
38 
39  return $contexts;
40  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getPopulatedContextNames()

ilOrgUnitOperationContext::getPopulatedContextNames ( )
Returns
array if own and

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

References array, and getContext().

23  {
24  $contexts = array( $this->getContext() );
25  $this->appendParentContextName($contexts);
26 
27  return $contexts;
28  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ returnDbTableName()

static ilOrgUnitOperationContext::returnDbTableName ( )
static
Returns
string

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

132  {
133  return 'il_orgu_op_contexts';
134  }

◆ setContext()

ilOrgUnitOperationContext::setContext (   $context)
Parameters
string$context

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

References $context.

105  {
106  $this->context = $context;
107  }

◆ setId()

ilOrgUnitOperationContext::setId (   $id)
Parameters
int$id

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

References $id.

87  {
88  $this->id = $id;
89  }

◆ setParentContextId()

ilOrgUnitOperationContext::setParentContextId (   $parent_context_id)
Parameters
int$parent_context_id

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

References $parent_context_id.

123  {
124  $this->parent_context_id = $parent_context_id;
125  }

Field Documentation

◆ $context

ilOrgUnitOperationContext::$context = self::CONTEXT_OBJECT
protected

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

Referenced by getContext(), and setContext().

◆ $id

ilOrgUnitOperationContext::$id = 0
protected

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

Referenced by getId(), and setId().

◆ $parent_context_id

ilOrgUnitOperationContext::$parent_context_id = 0
protected

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

Referenced by getParentContextId(), and setParentContextId().

◆ CONTEXT_CRS

const ilOrgUnitOperationContext::CONTEXT_CRS = "crs"

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

◆ CONTEXT_EXC

const ilOrgUnitOperationContext::CONTEXT_EXC = "exc"

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

◆ CONTEXT_GRP

const ilOrgUnitOperationContext::CONTEXT_GRP = "grp"

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

◆ CONTEXT_IASS

const ilOrgUnitOperationContext::CONTEXT_IASS = "iass"

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

◆ CONTEXT_OBJECT

const ilOrgUnitOperationContext::CONTEXT_OBJECT = "object"

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

◆ CONTEXT_SVY

const ilOrgUnitOperationContext::CONTEXT_SVY = "svy"

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

◆ CONTEXT_TST

const ilOrgUnitOperationContext::CONTEXT_TST = "tst"

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


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