ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilNonEditableValueGUI.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 $type;
34  protected $value;
35  protected $title;
36  protected $info;
37  protected $section_icon;
38 
44  function __construct($a_title = "", $a_id = "")
45  {
46  parent::__construct($a_title, $a_id);
47  $this->setTitle($a_title);
48  $this->setType("non_editable_value");
49  }
50 
51  function checkInput()
52  {
53  return true;
54  }
55 
61  function setType($a_type)
62  {
63  $this->type = $a_type;
64  }
65 
71  function getType()
72  {
73  return $this->type;
74  }
75 
81  function setTitle($a_title)
82  {
83  $this->title = $a_title;
84  }
85 
91  function getTitle()
92  {
93  return $this->title;
94  }
95 
101  function setInfo($a_info)
102  {
103  $this->info = $a_info;
104  }
105 
111  function getInfo()
112  {
113  return $this->info;
114  }
115 
121  function setValue($a_value)
122  {
123  $this->value = $a_value;
124  }
125 
131  function getValue()
132  {
133  return $this->value;
134  }
135 
140  function insert(&$a_tpl)
141  {
142  $a_tpl->setCurrentBlock("non_editable_value");
143  $a_tpl->setVariable("VALUE", $this->getValue());
144  $a_tpl->parseCurrentBlock();
145  }
146 
152  function setValueByArray($a_values)
153  {
154  $this->setValue($a_values[$this->getPostVar()]);
155  }
156 
157 
158 }