35 $lng = $DIC->language();
38 $te->setRequired(
true);
46 $m->setRenderOneForEmptyValue(
false);
57 $over->setOptions($over_options);
60 $available_scopes = [];
67 $scopes->setOptions($available_scopes);
75 $this->
object->afterObjectLoad();
77 self::F_TITLE => $this->
object->getTitle(),
78 self::F_DESCRIPTION => $this->
object->getDescription(),
79 self::F_AUTHORITIES => $this->
object->getAuthoritiesAsArray()
90 $this->
object->setTitle($this->
getInput(self::F_TITLE));
91 $this->
object->setDescription($this->
getInput(self::F_DESCRIPTION));
93 $authorities = $this->
getInput(self::F_AUTHORITIES);
95 if (!is_array($authorities)) {
96 $this->
object->setAuthorities([]);
97 $this->
object->storeAuthorities();
101 $ilOrgUnitAuthorities = [];
102 foreach ($authorities as $authority) {
106 $id = $authority[
"id"];
111 $ilOrgUnitAuthority->setPositionId($this->
object->getId());
112 $ilOrgUnitAuthority->setScope($authority[
"scope"]);
113 $ilOrgUnitAuthority->setOver($authority[
"over"]);
114 $ilOrgUnitAuthorities[] = clone $ilOrgUnitAuthority;
116 $this->
object->setAuthorities($ilOrgUnitAuthorities);
117 $this->
object->storeAuthorities();
static getArray(?string $key=null, $values=null)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This class represents a text area property in a property form.
static findOrGetInstance($primary_key, array $add_constructor_args=array())