X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2Fform%2FTextArea.class.php;h=be884f0d88d1a2628c623b1db16b9df2d26ec601;hb=796b9e17473ca045e448b7876472bb73015247e9;hp=9c779179842f59dabef18ca1a208a913457fc4d5;hpb=ac5189157ef60820dd125400baee9f408a9ba2ea;p=timetracker.git
diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php
index 9c779179..be884f0d 100644
--- a/WEB-INF/lib/form/TextArea.class.php
+++ b/WEB-INF/lib/form/TextArea.class.php
@@ -29,43 +29,25 @@
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 setColumns($value) { $this->mColumns = $value; }
- function getColumns() { return $this->mColumns; }
+ function __construct($name)
+ {
+ $this->class = 'TextArea';
+ $this->name = $name;
+ }
- function setRows($value) { $this->mRows = $value; }
- function getRows() { return $this->mRows; }
-
- function toStringControl() {
+ function getHtml() {
- if ($this->id=="") $this->id = $this->mName;
-
- $js_maxlen = "";
+ if (empty($this->id))
+ $this->id = $this->name;
$html = "\n\t";
- if ($js_maxlen) $html = $js_maxlen."\n".$html;
return $html;
}
-
- function getExtraScript() {
- $s = "\n";
- return $s;
- }
}