4 |
* |
* |
5 |
* $Id$ |
* $Id$ |
6 |
* |
* |
7 |
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
* @author Walter A. Boring IV <waboring@newsblob.com> |
8 |
* @author Suren Markossian <suren@bcsweb.com> |
* @author Suren Markossian <suren@bcsweb.com> |
9 |
* @package phpHtmlLib |
* @package phpHtmlLib |
10 |
* @subpackage FormProcessing |
* @subpackage FormProcessing |
18 |
* input field of type="hidden". It has no validation method. |
* input field of type="hidden". It has no validation method. |
19 |
* |
* |
20 |
* |
* |
21 |
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
* @author Walter A. Boring IV <waboring@newsblob.com> |
22 |
* @author Suren Markossian <suren@bcsweb.com> |
* @author Suren Markossian <suren@bcsweb.com> |
23 |
* @package phpHtmlLib |
* @package phpHtmlLib |
24 |
* @subpackage FormProcessing |
* @subpackage FormProcessing |
35 |
} |
} |
36 |
|
|
37 |
function get_element() { |
function get_element() { |
38 |
return form_hidden($this->get_element_name(), |
$attributes = $this->_build_element_attributes(); |
39 |
$this->get_value() ); |
$attributes["type"] = "hidden"; |
40 |
|
|
41 |
|
if (($value = $this->get_value()) != NULL) |
42 |
|
$attributes["value"] = $value; |
43 |
|
|
44 |
|
return new INPUTtag($attributes); |
45 |
|
|
46 |
|
//return form_hidden($this->get_element_name(), |
47 |
|
// $this->get_value() ); |
48 |
|
} |
49 |
|
|
50 |
|
/** |
51 |
|
* This method returns the hidden version of this |
52 |
|
* element for a confirmation page. |
53 |
|
* |
54 |
|
* NOTE: This is called by the FormProcessor only. |
55 |
|
* It shouldn't be called manually. |
56 |
|
* |
57 |
|
* @return INPUTtag of type hidden |
58 |
|
*/ |
59 |
|
function get_confirm_element() { |
60 |
|
return $this->get_element(); |
61 |
} |
} |
62 |
} |
} |
63 |
|
|
67 |
* a specialized error field and message. |
* a specialized error field and message. |
68 |
* |
* |
69 |
* |
* |
70 |
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
* @author Walter A. Boring IV <waboring@newsblob.com> |
71 |
* @author Suren Markossian <suren@bcsweb.com> |
* @author Suren Markossian <suren@bcsweb.com> |
72 |
* @package phpHtmlLib |
* @package phpHtmlLib |
73 |
* @subpackage FormProcessing |
* @subpackage FormProcessing |