3
* TextAreaWidget.class.php
5
* This file contains the definition of the TextAreaWidget class.
8
* @author John Diamond <jdiamond@solid-state.org>
9
* @copyright John Diamond <jdiamond@solid-state.org>
10
* @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
17
* @author John Diamond <jdiamond@solid-state.org>
19
class TextAreaWidget extends HTMLWidget
24
* Returns HTML code for this widget
26
* @param array $params Parameters passed from the template
27
* @return string HTML code for this widget
29
function getHTML( $params )
31
// Get widget value if available
32
$value = $this->determineValue( $params );
34
// Generate HTML for a text box control
35
unset( $myParams['type'] );
36
$paramStr = $this->buildParams( $params, $myParams );
37
return sprintf( "\n<textarea %s>%s</textarea>\n", $paramStr, $value );
b'\\ No newline at end of file'