36 protected ?
int $id = 0;
91 throw new ilException(
'Cannot modify a protected ilOrgUnitPermission');
99 throw new ilException(
'Cannot modify a protected ilOrgUnitPermission');
104 public function delete():
void 107 throw new ilException(
'Cannot modify a protected ilOrgUnitPermission');
115 $this->operations = is_array($this->operations) ? $this->operations : array();
116 foreach ($this->operations as $operation) {
117 $this->selected_operation_ids[] = $operation->getOperationId();
130 public function setId(?
int $id): void
189 return in_array($operation_id, $this->selected_operation_ids);
204 return self::TABLE_NAME;
219 return ($this->
getParentId() === self::PARENT_TEMPLATE);
224 return ($this->
getParentId() != self::PARENT_TEMPLATE);
249 switch ($field_name) {
252 foreach ($this->operations as $operation) {
253 $ids[] = $operation->getOperationId();
256 return json_encode($ids);
259 return parent::sleep($field_name);
267 public function wakeUp($field_name, $field_value)
269 switch ($field_name) {
271 $ids = json_decode($field_value);
272 $ids = is_array($ids) ? $ids : array();
274 foreach ($ids as $id) {
276 if ($ilOrgUnitOperation) {
277 $operations[] = $ilOrgUnitOperation;
284 return parent::wakeUp($field_name, $field_value);
array $selected_operation_ids
__construct($primary_key=0)
static returnDbTableName()
setOperations(array $operations)
setProtected(bool $protected)
wakeUp($field_name, $field_value)
ilOrgUnitOperationContext $context
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setNewlyCreated(bool $newly_created)
isOperationIdSelected(int $operation_id)
getSelectedOperationIds()
setContext(ilOrgUnitOperationContext $context)
setPositionId(int $position_id)
static getOperationsForContextId(string $context_id)
static findById(int $operation_id)
setContextId(int $context_id)
array $possible_operations
__construct(Container $dic, ilPlugin $plugin)
bool $protected
true integer 1
setParentId(int $parent_id)