ILIAS  Release_3_10_x_branch Revision 61812
 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 
38  function __construct($a_title = "", $a_value = "", $a_info = "")
39  {
40  $this->setTitle($a_title);
41  $this->setValue($a_value);
42  $this->setInfo($a_info);
43  }
44 
50  function setTitle($a_title)
51  {
52  $this->title = $a_title;
53  }
54 
60  function getTitle()
61  {
62  return $this->title;
63  }
64 
70  function setInfo($a_info)
71  {
72  $this->info = $a_info;
73  }
74 
80  function getInfo()
81  {
82  return $this->info;
83  }
84 
90  function setValue($a_value)
91  {
92  $this->value = $a_value;
93  }
94 
100  function getValue()
101  {
102  return $this->value;
103  }
104 
110  function addSubItem($a_item)
111  {
112  $this->sub_items[] = $a_item;
113  }
114 
120  function getSubItems()
121  {
122  return $this->sub_items;
123  }
124 
125 }