ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilNonEditableValueGUI.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11
class
ilNonEditableValueGUI
extends
ilSubEnabledFormPropertyGUI
implements
ilTableFilterItem
12
{
13
protected
$type
;
14
protected
$value
;
15
protected
$title
;
16
protected
$info
;
17
protected
$section_icon
;
18
24
function
__construct
($a_title =
""
, $a_id =
""
)
25
{
26
parent::__construct
($a_title, $a_id);
27
$this->
setTitle
($a_title);
28
$this->
setType
(
"non_editable_value"
);
29
}
30
31
function
checkInput
()
32
{
33
$_POST
[$this->
getPostVar
()] =
ilUtil::stripSlashes
(
$_POST
[$this->
getPostVar
()]);
34
return
$this->
checkSubItemsInput
();
35
}
36
42
function
setType
($a_type)
43
{
44
$this->type = $a_type;
45
}
46
52
function
getType
()
53
{
54
return
$this->type
;
55
}
56
62
function
setTitle
($a_title)
63
{
64
$this->title = $a_title;
65
}
66
72
function
getTitle
()
73
{
74
return
$this->title
;
75
}
76
82
function
setInfo
($a_info)
83
{
84
$this->info = $a_info;
85
}
86
92
function
getInfo
()
93
{
94
return
$this->info
;
95
}
96
102
function
setValue
($a_value)
103
{
104
$this->value = $a_value;
105
}
106
112
function
getValue
()
113
{
114
return
$this->value
;
115
}
116
120
function
render
()
121
{
122
$tpl
=
new
ilTemplate
(
"tpl.non_editable_value.html"
,
true
,
true
,
"Services/Form"
);
123
$tpl
->setVariable(
"VALUE"
, $this->
getValue
());
124
$tpl
->setVariable(
"ID"
, $this->
getFieldId
());
125
$tpl
->setVariable(
'NON_EDITABLE_ID'
,$this->
getPostVar
());
126
$tpl
->parseCurrentBlock();
127
128
return
$tpl
->get();
129
}
130
135
function
insert
(&$a_tpl)
136
{
137
$a_tpl->setCurrentBlock(
"prop_generic"
);
138
$a_tpl->setVariable(
"PROP_GENERIC"
, $this->
render
());
139
$a_tpl->parseCurrentBlock();
140
}
141
147
function
setValueByArray
($a_values)
148
{
149
if
(isset($a_values[$this->
getPostVar
()]))
150
{
151
$this->
setValue
($a_values[$this->
getPostVar
()]);
152
}
153
foreach
($this->
getSubItems
() as $item)
154
{
155
$item->setValueByArray($a_values);
156
}
157
}
158
162
function
getTableFilterHTML
()
163
{
164
$html = $this->
render
();
165
return
$html;
166
}
167
}
Services
Form
classes
class.ilNonEditableValueGUI.php
Generated on Mon Apr 25 2016 19:01:31 for ILIAS by
1.8.1.2 (using
Doxyfile
)