ILIAS  release_8 Revision v8.24
class.ilOrgUnitOperation.php
Go to the documentation of this file.
1<?php
24{
25 public const OP_READ_LEARNING_PROGRESS = 'read_learning_progress';
26 public const OP_WRITE_LEARNING_PROGRESS = 'write_learning_progress';
27 public const OP_EDIT_SUBMISSION_GRADES = 'edit_submissions_grades';
28 public const OP_ACCESS_RESULTS = 'access_results';
29 public const OP_MANAGE_MEMBERS = 'manage_members';
30 public const OP_ACCESS_ENROLMENTS = 'access_enrolments';
31 public const OP_MANAGE_PARTICIPANTS = 'manage_participants';
32 public const OP_SCORE_PARTICIPANTS = 'score_participants';
33 public const OP_VIEW_CERTIFICATES = 'view_certificates';
34 public const OP_VIEW_COMPETENCES = 'view_competences';
35 public const OP_EDIT_USER_ACCOUNTS = 'edit_user_accounts';
36 public const OP_VIEW_MEMBERS = 'view_members';
37 public const OP_VIEW_INDIVIDUAL_PLAN = 'view_individual_plan';
38 public const OP_EDIT_INDIVIDUAL_PLAN = 'edit_individual_plan';
39 public const OP_READ_EMPLOYEE_TALK = 'read_employee_talk';
40 public const OP_CREATE_EMPLOYEE_TALK = 'create_employee_talk';
41 public const OP_EDIT_EMPLOYEE_TALK = 'edit_employee_talk';
42
52 protected ?int $operation_id = 0;
60 protected string $operation_string = '';
67 protected string $description = '';
75 protected int $list_order = 0;
83 protected int $context_id = 0;
84
85 public function create(): void
86 {
87 if (self::where(array(
88 'context_id' => $this->getContextId(),
89 'operation_string' => $this->getOperationString(),
90 ))->hasSets()
91 ) {
92 throw new ilException('This operation in this context has already been registered.');
93 }
94 parent::create();
95 }
96
97 public function getOperationId(): ?int
98 {
100 }
101
102 public function setOperationId(int $operation_id): void
103 {
104 $this->operation_id = $operation_id;
105 }
106
107 public function getOperationString(): string
108 {
110 }
111
112 public function setOperationString(string $operation_string): void
113 {
114 $this->operation_string = $operation_string;
115 }
116
117 public function getDescription(): string
118 {
119 return $this->description;
120 }
121
122 public function setDescription(string $description): void
123 {
124 $this->description = $description;
125 }
126
127 public function getListOrder(): int
128 {
129 return $this->list_order;
130 }
131
132 public function setListOrder(int $list_order): void
133 {
134 $this->list_order = $list_order;
135 }
136
137 public function getContextId(): int
138 {
139 return $this->context_id;
140 }
141
142 public function setContextId(int $context_id): void
143 {
144 $this->context_id = $context_id;
145 }
146
147 public static function returnDbTableName(): string
148 {
149 return 'il_orgu_operations';
150 }
151}
Class ActiveRecord.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setOperationString(string $operation_string)
setDescription(string $description)
setOperationId(int $operation_id)