ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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'
 
const OP_MANAGE_PARTICIPANTS = 'manage_participants'
 
const OP_SCORE_PARTICIPANTS = 'score_participants'
 
- 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 67 of file class.ilOrgUnitOperation.php.

References getContextId(), and getOperationString().

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

◆ getContextId()

ilOrgUnitOperation::getContextId ( )
Returns
int

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

References $context_id.

Referenced by create().

155  {
156  return $this->context_id;
157  }
+ Here is the caller graph for this function:

◆ getDescription()

ilOrgUnitOperation::getDescription ( )
Returns
string

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

References $description.

119  {
120  return $this->description;
121  }

◆ getListOrder()

ilOrgUnitOperation::getListOrder ( )
Returns
int

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

References $list_order.

137  {
138  return $this->list_order;
139  }

◆ getOperationId()

ilOrgUnitOperation::getOperationId ( )
Returns
int

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

References $operation_id.

◆ getOperationString()

ilOrgUnitOperation::getOperationString ( )
Returns
string

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

References $operation_string.

Referenced by create().

101  {
103  }
+ Here is the caller graph for this function:

◆ returnDbTableName()

static ilOrgUnitOperation::returnDbTableName ( )
static
Returns
string

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

173  {
174  return 'il_orgu_operations';
175  }

◆ setContextId()

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

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

References $context_id.

164  {
165  $this->context_id = $context_id;
166  }

◆ setDescription()

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

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

References $description.

128  {
129  $this->description = $description;
130  }

◆ setListOrder()

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

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

References $list_order.

146  {
147  $this->list_order = $list_order;
148  }

◆ setOperationId()

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

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

References $operation_id.

92  {
93  $this->operation_id = $operation_id;
94  }

◆ setOperationString()

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

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

References $operation_string.

110  {
111  $this->operation_string = $operation_string;
112  }

Field Documentation

◆ $context_id

ilOrgUnitOperation::$context_id = 0
protected

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

Referenced by getContextId(), and setContextId().

◆ $description

ilOrgUnitOperation::$description = ''
protected

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

Referenced by getDescription(), and setDescription().

◆ $list_order

ilOrgUnitOperation::$list_order = 0
protected

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

Referenced by getListOrder(), and setListOrder().

◆ $operation_id

ilOrgUnitOperation::$operation_id = 0
protected

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

Referenced by getOperationId(), and setOperationId().

◆ $operation_string

ilOrgUnitOperation::$operation_string = ''
protected

Definition at line 38 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'

◆ 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_MANAGE_PARTICIPANTS

const ilOrgUnitOperation::OP_MANAGE_PARTICIPANTS = 'manage_participants'

◆ OP_READ_LEARNING_PROGRESS

◆ OP_SCORE_PARTICIPANTS

const ilOrgUnitOperation::OP_SCORE_PARTICIPANTS = 'score_participants'

◆ 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: