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);
 
  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) {
 
  284        return parent::wakeUp($field_name, $field_value);
 
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...
 
static getOperationsForContextId(string $context_id)
 
static findById(int $operation_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
array $possible_operations
 
setContext(ilOrgUnitOperationContext $context)
 
ilOrgUnitOperationContext $context
 
wakeUp($field_name, $field_value)
 
isOperationIdSelected(int $operation_id)
 
array $selected_operation_ids
 
setProtected(bool $protected)
 
setOperations(array $operations)
 
setParentId(int $parent_id)
 
setContextId(int $context_id)
 
bool $protected
@con_has_field true @con_fieldtype integer @con_length 1
 
setNewlyCreated(bool $newly_created)
 
getSelectedOperationIds()
 
setPositionId(int $position_id)
 
__construct($primary_key=0)
 
static returnDbTableName()
 
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc