38 $this->
settings = (is_null($settings))
41 $this->setting = $this->
settings->getAll();
59 return (!(isset($this->setting[self::HIDE_PREFIX . $field]) &&
60 $this->setting[self::HIDE_PREFIX . $field] == 1));
69 return (!(isset($this->setting[self::DISABLED_PREFIX . $field]) &&
70 $this->setting[self::DISABLED_PREFIX . $field] == 1));
76 public function setVisible(
string $field,
bool $visible): void
79 $this->
settings->set(self::HIDE_PREFIX . $field,
"1");
80 $this->setting[self::HIDE_PREFIX . $field] = 1;
82 $this->
settings->delete(self::HIDE_PREFIX . $field);
83 unset($this->setting[self::HIDE_PREFIX . $field]);
93 $this->
settings->set(self::DISABLED_PREFIX . $field,
"1");
94 $this->setting[self::DISABLED_PREFIX . $field] = 1;
96 $this->
settings->delete(self::DISABLED_PREFIX . $field);
97 unset($this->setting[self::DISABLED_PREFIX . $field]);
isVisible(string $field)
Is setting visible to user?
isChangeable(string $field)
Is setting changeable by user?
isVisibleAndChangeable(string $field)
Is field visible and changeable by user?
setVisible(string $field, bool $visible)
Set a profile field being visible.
__construct(ilSetting $settings=null)
setChangeable(string $field, bool $changeable)
Set a profile field being changeable.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...