Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
25 | class XoopsFormHidden extends XoopsFormElement |
||
26 | { |
||
27 | /** |
||
28 | * Value |
||
29 | * |
||
30 | * @var string |
||
31 | * @access private |
||
32 | */ |
||
33 | public $_value; |
||
34 | |||
35 | /** |
||
36 | * Constructor |
||
37 | * |
||
38 | * @param string $name "name" attribute |
||
39 | * @param string $value "value" attribute |
||
40 | */ |
||
41 | public function __construct($name, $value) |
||
42 | { |
||
43 | $this->setName($name); |
||
44 | $this->setHidden(); |
||
45 | $this->setValue($value); |
||
46 | $this->setCaption(''); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Get the "value" attribute |
||
51 | * |
||
52 | * @param bool $encode To sanitizer the text? |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getValue($encode = false) |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * Sets the "value" attribute |
||
62 | * |
||
63 | * @patam $value string |
||
64 | * @param $value |
||
65 | */ |
||
66 | public function setValue($value) |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * Prepare HTML for output |
||
73 | * |
||
74 | * @return string HTML |
||
75 | */ |
||
76 | public function render() |
||
79 | } |
||
80 | } |
||
81 |