ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilOrgUnitOperation.php
Go to the documentation of this file.
1 <?php
2 
9 {
10  const OP_READ_LEARNING_PROGRESS = 'read_learning_progress';
11  const OP_WRITE_LEARNING_PROGRESS = 'write_learning_progress';
12  const OP_EDIT_SUBMISSION_GRADES = 'edit_submissions_grades';
13  const OP_ACCESS_RESULTS = 'access_results';
14  const OP_MANAGE_MEMBERS = 'manage_members';
15  const OP_ACCESS_ENROLMENTS = 'access_enrolments';
16  const OP_MANAGE_PARTICIPANTS = 'manage_participants';
17  const OP_SCORE_PARTICIPANTS = 'score_participants';
18 
29  protected $operation_id = 0;
38  protected $operation_string = '';
46  protected $description = '';
55  protected $list_order = 0;
64  protected $context_id = 0;
65 
66 
67  public function create()
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  }
77 
78 
82  public function getOperationId()
83  {
84  return $this->operation_id;
85  }
86 
87 
91  public function setOperationId($operation_id)
92  {
93  $this->operation_id = $operation_id;
94  }
95 
96 
100  public function getOperationString()
101  {
103  }
104 
105 
110  {
111  $this->operation_string = $operation_string;
112  }
113 
114 
118  public function getDescription()
119  {
120  return $this->description;
121  }
122 
123 
127  public function setDescription($description)
128  {
129  $this->description = $description;
130  }
131 
132 
136  public function getListOrder()
137  {
138  return $this->list_order;
139  }
140 
141 
145  public function setListOrder($list_order)
146  {
147  $this->list_order = $list_order;
148  }
149 
150 
154  public function getContextId()
155  {
156  return $this->context_id;
157  }
158 
159 
163  public function setContextId($context_id)
164  {
165  $this->context_id = $context_id;
166  }
167 
168 
172  public static function returnDbTableName()
173  {
174  return 'il_orgu_operations';
175  }
176 }
Class ActiveRecord.
setOperationString($operation_string)
Class ilOrgUnitOperation.