1 |
<?php |
2 |
/** |
3 |
* This file contains the Text FormElement class. |
4 |
* |
5 |
* $Id: FETextArea.inc,v 1.3 2003/02/18 23:02:01 hemna Exp $ |
6 |
* |
7 |
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
8 |
* @author Suren Markosyan <suren@bcsweb.com> |
9 |
* @package phpHtmlLib |
10 |
* @subpackage FormProcessing |
11 |
* |
12 |
* @copyright LGPL - See LICENCE |
13 |
* |
14 |
*/ |
15 |
|
16 |
/** |
17 |
* This is the TextArea FormElement which builds a |
18 |
* textarea field. It has no validation method. |
19 |
* |
20 |
* |
21 |
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
22 |
* @author Suren Markossian <suren@bcsweb.com> |
23 |
* @package phpHtmlLib |
24 |
* @subpackage FormProcessing |
25 |
* |
26 |
* @copyright LGPL - See LICENCE |
27 |
*/ |
28 |
class FETextArea extends FEBoxElement { |
29 |
|
30 |
/** |
31 |
* This function builds and returns the |
32 |
* form element object |
33 |
* |
34 |
* @return object |
35 |
*/ |
36 |
function get_element() { |
37 |
|
38 |
$attributes = $this->_build_element_attributes(); |
39 |
|
40 |
$tag = new TEXTAREAtag($attributes); |
41 |
|
42 |
if (($value = $this->get_value()) != NULL) |
43 |
$tag->add($value); |
44 |
|
45 |
return $tag; |
46 |
} |
47 |
|
48 |
} |
49 |
?> |