22 $this->
settings = (is_null($settings))
25 $this->setting = $this->
settings->getAll();
45 return (!(isset($this->setting[self::HIDE_PREFIX . $field]) &&
46 $this->setting[self::HIDE_PREFIX . $field] == 1));
56 return (!(isset($this->setting[self::DISABLED_PREFIX . $field]) &&
57 $this->setting[self::DISABLED_PREFIX . $field] == 1));
68 $this->
settings->set(self::HIDE_PREFIX . $field,
"1");
69 $this->setting[self::HIDE_PREFIX . $field] = 1;
71 $this->
settings->delete(self::HIDE_PREFIX . $field);
72 unset($this->setting[self::HIDE_PREFIX . $field]);
84 $this->
settings->set(self::DISABLED_PREFIX . $field,
"1");
85 $this->setting[self::DISABLED_PREFIX . $field] = 1;
87 $this->
settings->delete(self::DISABLED_PREFIX . $field);
88 unset($this->setting[self::DISABLED_PREFIX . $field]);
isVisibleAndChangeable($field)
Is field visible and changeable by user?
isVisible(string $field)
Is setting visible to user?
isChangeable(string $field)
Is setting changeable by user?
setVisible(string $field, bool $visible)
Set a profile field being visible.
__construct(ilSetting $settings=null)
Constructor.
setChangeable(string $field, bool $changeable)
Set a profile field being changeable.
User settings configuration (what preferences can be visible/changed/...)