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

Class ilOrgUnitOperation. More...

+ Inheritance diagram for ilOrgUnitOperation:
+ Collaboration diagram for ilOrgUnitOperation:

Public Member Functions

 create ()
 
 getOperationId ()
 
 setOperationId ($operation_id)
 
 getOperationString ()
 
 setOperationString ($operation_string)
 
 getDescription ()
 
 setDescription ($description)
 
 getListOrder ()
 
 setListOrder ($list_order)
 
 getContextId ()
 
 setContextId ($context_id)
 
- 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 OP_READ_LEARNING_PROGRESS = 'read_learning_progress'
 
const OP_WRITE_LEARNING_PROGRESS = 'write_learning_progress'
 
const OP_EDIT_SUBMISSION_GRADES = 'edit_submissions_grades'
 
const OP_ACCESS_RESULTS = 'access_results'
 
const OP_MANAGE_MEMBERS = 'manage_members'
 
const OP_ACCESS_ENROLMENTS = 'access_enrolments'
 
- Data Fields inherited from ActiveRecord
const ACTIVE_RECORD_VERSION = '2.0.7'
 

Protected Attributes

 $operation_id = 0
 
 $operation_string = ''
 
 $description = ''
 
 $list_order = 0
 
 $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()

ilOrgUnitOperation::create ( )

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

References array, getContextId(), and getOperationString().

65  {
66  if (self::where(array(
67  'context_id' => $this->getContextId(),
68  'operation_string' => $this->getOperationString(),
69  ))->hasSets()) {
70  throw new ilException('This operation in this context has already been registered.');
71  }
72  parent::create();
73  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getContextId()

ilOrgUnitOperation::getContextId ( )
Returns
int

Definition at line 151 of file class.ilOrgUnitOperation.php.

References $context_id.

Referenced by create().

152  {
153  return $this->context_id;
154  }
+ Here is the caller graph for this function:

◆ getDescription()

ilOrgUnitOperation::getDescription ( )
Returns
string

Definition at line 115 of file class.ilOrgUnitOperation.php.

References $description.

116  {
117  return $this->description;
118  }

◆ getListOrder()

ilOrgUnitOperation::getListOrder ( )
Returns
int

Definition at line 133 of file class.ilOrgUnitOperation.php.

References $list_order.

134  {
135  return $this->list_order;
136  }

◆ getOperationId()

ilOrgUnitOperation::getOperationId ( )
Returns
int

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

References $operation_id.

◆ getOperationString()

ilOrgUnitOperation::getOperationString ( )
Returns
string

Definition at line 97 of file class.ilOrgUnitOperation.php.

References $operation_string.

Referenced by create().

+ Here is the caller graph for this function:

◆ returnDbTableName()

static ilOrgUnitOperation::returnDbTableName ( )
static
Returns
string

Definition at line 169 of file class.ilOrgUnitOperation.php.

170  {
171  return 'il_orgu_operations';
172  }

◆ setContextId()

ilOrgUnitOperation::setContextId (   $context_id)
Parameters
int$context_id

Definition at line 160 of file class.ilOrgUnitOperation.php.

References $context_id.

161  {
162  $this->context_id = $context_id;
163  }

◆ setDescription()

ilOrgUnitOperation::setDescription (   $description)
Parameters
string$description

Definition at line 124 of file class.ilOrgUnitOperation.php.

References $description.

125  {
126  $this->description = $description;
127  }

◆ setListOrder()

ilOrgUnitOperation::setListOrder (   $list_order)
Parameters
int$list_order

Definition at line 142 of file class.ilOrgUnitOperation.php.

References $list_order.

143  {
144  $this->list_order = $list_order;
145  }

◆ setOperationId()

ilOrgUnitOperation::setOperationId (   $operation_id)
Parameters
int$operation_id

Definition at line 88 of file class.ilOrgUnitOperation.php.

References $operation_id.

89  {
90  $this->operation_id = $operation_id;
91  }

◆ setOperationString()

ilOrgUnitOperation::setOperationString (   $operation_string)
Parameters
string$operation_string

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

References $operation_string.

107  {
108  $this->operation_string = $operation_string;
109  }

Field Documentation

◆ $context_id

ilOrgUnitOperation::$context_id = 0
protected

Definition at line 61 of file class.ilOrgUnitOperation.php.

Referenced by getContextId(), and setContextId().

◆ $description

ilOrgUnitOperation::$description = ''
protected

Definition at line 43 of file class.ilOrgUnitOperation.php.

Referenced by getDescription(), and setDescription().

◆ $list_order

ilOrgUnitOperation::$list_order = 0
protected

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

Referenced by getListOrder(), and setListOrder().

◆ $operation_id

ilOrgUnitOperation::$operation_id = 0
protected

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

Referenced by getOperationId(), and setOperationId().

◆ $operation_string

ilOrgUnitOperation::$operation_string = ''
protected

Definition at line 35 of file class.ilOrgUnitOperation.php.

Referenced by getOperationString(), and setOperationString().

◆ OP_ACCESS_ENROLMENTS

const ilOrgUnitOperation::OP_ACCESS_ENROLMENTS = 'access_enrolments'

◆ OP_ACCESS_RESULTS

const ilOrgUnitOperation::OP_ACCESS_RESULTS = 'access_results'

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

◆ OP_EDIT_SUBMISSION_GRADES

const ilOrgUnitOperation::OP_EDIT_SUBMISSION_GRADES = 'edit_submissions_grades'

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

◆ OP_MANAGE_MEMBERS

◆ OP_READ_LEARNING_PROGRESS

◆ OP_WRITE_LEARNING_PROGRESS

const ilOrgUnitOperation::OP_WRITE_LEARNING_PROGRESS = 'write_learning_progress'

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


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