ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilRadioOption.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2007 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
32 {
33  protected $title;
34  protected $value;
35  protected $info;
36  protected $sub_items = array();
37  protected $disabled;
38 
39  function __construct($a_title = "", $a_value = "", $a_info = "")
40  {
41  $this->setTitle($a_title);
42  $this->setValue($a_value);
43  $this->setInfo($a_info);
44  }
45 
51  function setTitle($a_title)
52  {
53  $this->title = $a_title;
54  }
55 
61  function getTitle()
62  {
63  return $this->title;
64  }
65 
71  function setInfo($a_info)
72  {
73  $this->info = $a_info;
74  }
75 
81  function getInfo()
82  {
83  return $this->info;
84  }
85 
91  function setValue($a_value)
92  {
93  $this->value = $a_value;
94  }
95 
101  function getValue()
102  {
103  return $this->value;
104  }
105 
106  public function setDisabled($a_disabled)
107  {
108  $this->disabled = $a_disabled;
109  }
110 
111  public function getDisabled()
112  {
113  return $this->disabled;
114  }
115 
121  function addSubItem($a_item)
122  {
123  $this->sub_items[] = $a_item;
124  }
125 
131  function getSubItems()
132  {
133  return $this->sub_items;
134  }
135 
136 }