X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/ac5189157ef60820dd125400baee9f408a9ba2ea..ecd15819788a42f6dfe46949475e45ddb66df436:/WEB-INF/lib/form/TextArea.class.php diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php index 9c779179..a9c0c800 100644 --- a/WEB-INF/lib/form/TextArea.class.php +++ b/WEB-INF/lib/form/TextArea.class.php @@ -29,27 +29,26 @@ import('form.FormElement'); class TextArea extends FormElement { - var $mPassword = false; var $mColumns = ""; var $mRows = ""; - var $class = 'TextArea'; var $mOnKeyPress = ""; - function __construct($name,$value="") - { - $this->name = $name; - $this->value = $value; - } - + function __construct($name) + { + $this->class = 'TextArea'; + $this->name = $name; + } + function setColumns($value) { $this->mColumns = $value; } function getColumns() { return $this->mColumns; } function setRows($value) { $this->mRows = $value; } function getRows() { return $this->mRows; } - function toStringControl() { + function getHtml() { - if ($this->id=="") $this->id = $this->mName; + if (empty($this->id)) + $this->id = $this->name; $js_maxlen = "";