19 declare(strict_types=1);
24 public const NEWS =
'news';
25 public const MAIL =
'mail';
32 $this->setting = is_null($dashboard_settings)
34 : $dashboard_settings;
55 $this->setting->set(
'side_panel_positions', serialize($positions));
63 $positions = $this->setting->get(
'side_panel_positions',
'');
65 if ($positions !==
'') {
66 $modules = unserialize($positions, [
'allowed_classes' =>
false]);
69 foreach ($all_modules as $mod) {
70 if (!in_array($mod, $modules,
true)) {
82 public function enable(
string $mod,
bool $active): void
85 $this->setting->set(
'enable_' . $mod, $active ?
'1' :
'0');
92 return (
bool) $this->setting->get(
'enable_' . $mod,
'1');
__construct(?ilSetting $dashboard_settings=null)
setPositions(array $positions)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
isValidModule(string $mod)
enable(string $mod, bool $active)