ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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';
26 protected $operation_id = 0;
35 protected $operation_string = '';
43 protected $description = '';
52 protected $list_order = 0;
61 protected $context_id = 0;
62
63
64 public function create()
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 }
74
75
79 public function getOperationId()
80 {
82 }
83
84
89 {
90 $this->operation_id = $operation_id;
91 }
92
93
97 public function getOperationString()
98 {
100 }
101
102
107 {
108 $this->operation_string = $operation_string;
109 }
110
111
115 public function getDescription()
116 {
117 return $this->description;
118 }
119
120
125 {
126 $this->description = $description;
127 }
128
129
133 public function getListOrder()
134 {
135 return $this->list_order;
136 }
137
138
142 public function setListOrder($list_order)
143 {
144 $this->list_order = $list_order;
145 }
146
147
151 public function getContextId()
152 {
153 return $this->context_id;
154 }
155
156
160 public function setContextId($context_id)
161 {
162 $this->context_id = $context_id;
163 }
164
165
169 public static function returnDbTableName()
170 {
171 return 'il_orgu_operations';
172 }
173}
Class ActiveRecord.
An exception for terminatinating execution or to throw for unit testing.
Base class for ILIAS Exception handling.
Class ilOrgUnitOperation.
setOperationString($operation_string)