ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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  const OP_VIEW_CERTIFICATES = 'view_certificates';
19  const OP_VIEW_COMPETENCES = 'view_competences';
20  const OP_EDIT_USER_ACCOUNTS = 'edit_user_accounts';
21  const OP_VIEW_MEMBERS = 'view_members';
22  const OP_VIEW_INDIVIDUAL_PLAN = 'view_individual_plan';
23  const OP_EDIT_INDIVIDUAL_PLAN = 'edit_individual_plan';
24 
35  protected $operation_id = 0;
44  protected $operation_string = '';
52  protected $description = '';
61  protected $list_order = 0;
70  protected $context_id = 0;
71 
72 
73  public function create()
74  {
75  if (self::where(array(
76  'context_id' => $this->getContextId(),
77  'operation_string' => $this->getOperationString(),
78  ))->hasSets()
79  ) {
80  throw new ilException('This operation in this context has already been registered.');
81  }
82  parent::create();
83  }
84 
85 
89  public function getOperationId()
90  {
91  return $this->operation_id;
92  }
93 
94 
98  public function setOperationId($operation_id)
99  {
100  $this->operation_id = $operation_id;
101  }
102 
103 
107  public function getOperationString()
108  {
110  }
111 
112 
117  {
118  $this->operation_string = $operation_string;
119  }
120 
121 
125  public function getDescription()
126  {
127  return $this->description;
128  }
129 
130 
134  public function setDescription($description)
135  {
136  $this->description = $description;
137  }
138 
139 
143  public function getListOrder()
144  {
145  return $this->list_order;
146  }
147 
148 
152  public function setListOrder($list_order)
153  {
154  $this->list_order = $list_order;
155  }
156 
157 
161  public function getContextId()
162  {
163  return $this->context_id;
164  }
165 
166 
170  public function setContextId($context_id)
171  {
172  $this->context_id = $context_id;
173  }
174 
175 
179  public static function returnDbTableName()
180  {
181  return 'il_orgu_operations';
182  }
183 }
setOperationString($operation_string)