XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
formhidden.php
Go to the documentation of this file.
1
<?php
21
defined(
'XOOPS_ROOT_PATH'
) or die('Restricted access');
22
26
class
XoopsFormHidden
extends
XoopsFormElement
27
{
34
var
$_value
;
35
42
function
XoopsFormHidden
($name, $value)
43
{
44
$this->setName($name);
45
$this->setHidden();
46
$this->setValue($value);
47
$this->setCaption(
''
);
48
}
49
56
function
getValue($encode =
false
)
57
{
58
return
$encode ? htmlspecialchars($this->_value, ENT_QUOTES) : $this->_value;
59
}
60
66
function
setValue($value)
67
{
68
$this->_value = $value;
69
}
70
76
function
render()
77
{
78
return
'<input type="hidden" name="'
. $this->getName() .
'" id="'
. $this->getName() .
'" value="'
. $this->getValue() .
'" />'
;
79
}
80
}
81
82
?>
L:
0xoops
xoops-2.5.6
htdocs
class
xoopsform
formhidden.php
Generated on Fri May 10 2013 01:04:25 for XOOPS 2.5.6 by
1.8.3.1