84 throw new ilException(
'Cannot modify a protected ilOrgUnitPermission');
93 throw new ilException(
'Cannot modify a protected ilOrgUnitPermission');
99 public function delete()
102 throw new ilException(
'Cannot modify a protected ilOrgUnitPermission');
110 $this->possible_operations = ilOrgUnitOperationQueries::getOperationsForContextId($this->
getContextId());
111 $this->operations = is_array($this->operations) ? $this->operations :
array();
112 foreach ($this->operations as $operation) {
113 $this->selected_operation_ids[] = $operation->getOperationId();
216 return in_array($operation_id, $this->selected_operation_ids);
243 return self::TABLE_NAME;
270 return ($this->
getParentId() == self::PARENT_TEMPLATE);
279 return ($this->
getParentId() != self::PARENT_TEMPLATE);
326 switch ($field_name) {
329 foreach ($this->operations as $operation) {
330 $ids[] = $operation->getOperationId();
333 return json_encode($ids);
336 return parent::sleep($field_name);
346 public function wakeUp($field_name, $field_value)
348 switch ($field_name) {
350 $ids = json_decode($field_value);
351 $ids = is_array($ids) ? $ids :
array();
353 foreach ($ids as
$id) {
355 if ($ilOrgUnitOperation) {
363 return parent::wakeUp($field_name, $field_value);
static findById($operation_id)
static returnDbTableName()
setOperations($operations)
wakeUp($field_name, $field_value)
setNewlyCreated($newly_created)
Class ilOrgUnitPermissionGUI.
getSelectedOperationIds()
setContextId($context_id)
isOperationIdSelected($operation_id)
setPositionId($position_id)
Create styles array
The data for the language used.
update($pash, $contents, Config $config)