ILIAS  release_8 Revision v8.24
class.ilSettingsTemplateConfig.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
27{
28 public const TEXT = "text";
29 public const SELECT = "select";
30 public const BOOL = "bool";
31 public const CHECKBOX = "check";
32
33 private string $type;
34 private array $tabs = array();
35 private array $setting = array();
36
37 public function __construct(string $a_obj_type)
38 {
39 $this->setType($a_obj_type);
40 }
41
42 public function setType(string $a_val): void
43 {
44 $this->type = $a_val;
45 }
46
47 public function getType(): string
48 {
49 return $this->type;
50 }
51
52 public function addHidableTab(
53 string $a_tab_id,
54 string $a_text
55 ): void {
56 $this->tabs[$a_tab_id] = array(
57 "id" => $a_tab_id,
58 "text" => $a_text
59 );
60 }
61
62 public function getHidableTabs(): array
63 {
64 return $this->tabs;
65 }
66
67 public function addSetting(
68 string $a_id,
69 string $a_type,
70 string $a_text,
71 bool $a_hidable,
72 int $a_length = 0,
73 array $a_options = array()
74 ): void {
75 $this->setting[$a_id] = array(
76 "id" => $a_id,
77 "type" => $a_type,
78 "text" => $a_text,
79 "hidable" => $a_hidable,
80 "length" => $a_length,
81 "options" => $a_options
82 );
83 }
84
85 public function getSettings(): array
86 {
87 return $this->setting;
88 }
89}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addSetting(string $a_id, string $a_type, string $a_text, bool $a_hidable, int $a_length=0, array $a_options=array())
addHidableTab(string $a_tab_id, string $a_text)