35 array $ilOrgUnitPermissionsFilter,
39 $this->ilOrgUnitPermissions = $ilOrgUnitPermissionsFilter;
40 $this->
dic()->ctrl()->saveParameter($parent_gui,
'arid');
58 foreach ($this->ilOrgUnitPermissions as $ilOrgUnitPermission) {
59 $ilOrgUnitPermission->update();
68 $this->
setTitle($this->
txt(
"form_title_org_default_permissions_" 69 . BaseCommands::CMD_UPDATE));
77 foreach ($this->ilOrgUnitPermissions as $ilOrgUnitPermission) {
79 $context = $ilOrgUnitPermission->getContext()->getContext();
84 foreach ($ilOrgUnitPermission->getPossibleOperations() as $operation) {
85 $title = $this->
txt(
"org_op_{$operation->getOperationString()}");
86 $id = $operation->getOperationId();
96 $operations = array();
97 foreach ($this->ilOrgUnitPermissions as $ilOrgUnitPermission) {
98 $context = $ilOrgUnitPermission->getContext()->getContext();
99 foreach ($ilOrgUnitPermission->getPossibleOperations() as $operation) {
100 $id = $operation->getOperationId();
101 $operations[
"operations[{$context}][{$id}]"] = $ilOrgUnitPermission->isOperationIdSelected($operation->getOperationId());
113 $sent_operation_ids = $this->
getInput(self::F_OPERATIONS);
114 foreach ($this->ilOrgUnitPermissions as $ilOrgUnitPermission) {
116 $context = $ilOrgUnitPermission->getContext()->getContext();
117 foreach ($ilOrgUnitPermission->getPossibleOperations() as $operation) {
118 $id = $operation->getOperationId();
120 $operations[] = ilOrgUnitOperation::find($id);
123 $ilOrgUnitPermission->setOperations($operations);
162 protected function txt($key)
164 return $this->parent_gui->txt($key);
169 $lang_code =
"obj_{$context}";
170 if ($this->objectDefinition->isPlugin($context)) {
174 return $this->
txt($lang_code);
static lookupTxtById($plugin_id, $lang_var)
parses the objects.xml it handles the xml-description of all ilias objects
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
__construct(Container $dic, ilPlugin $plugin)