ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilSettingsTemplateConfig.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
12{
13 private $type;
14 private $tab = array();
15 private $setting = array();
16
17 const TEXT = "text";
18 const SELECT = "select";
19 const BOOL = "bool";
20 const CHECKBOX = "check";
21
27 function __construct($a_obj_type)
28 {
29 $this->setType($a_obj_type);
30 }
31
37 public function setType($a_val)
38 {
39 $this->type = $a_val;
40 }
41
47 public function getType()
48 {
49 return $this->type;
50 }
51
58 function addHidableTab($a_tab_id, $a_text)
59 {
60 $this->tabs[$a_tab_id] = array(
61 "id" => $a_tab_id,
62 "text" => $a_text
63 );
64 }
65
69 function getHidableTabs()
70 {
71 return $this->tabs;
72 }
73
80 function addSetting($a_id, $a_type, $a_text, $a_hidable, $a_length = 0, $a_options = array())
81 {
82 $this->setting[$a_id] = array(
83 "id" => $a_id,
84 "type" => $a_type,
85 "text" => $a_text,
86 "hidable" => $a_hidable,
87 "length" => $a_length,
88 "options" => $a_options
89 );
90 }
91
96 function getSettings()
97 {
98 return $this->setting;
99 }
100}
101
102?>
Settings template config class.
addSetting($a_id, $a_type, $a_text, $a_hidable, $a_length=0, $a_options=array())
Add setting.
addHidableTab($a_tab_id, $a_text)
Add hidable tabs.