X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Flib%2Fform%2FTextArea.class.php;h=be884f0d88d1a2628c623b1db16b9df2d26ec601;hb=76afe042736b2e08bf3d5b8a4112d15a93073e0b;hp=89eef4e58c69172868e7c40a51f891130a8eabf1;hpb=4a605a698d07ecdc11e11aa8921485ace261cdba;p=timetracker.git
diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php
index 89eef4e5..be884f0d 100644
--- a/WEB-INF/lib/form/TextArea.class.php
+++ b/WEB-INF/lib/form/TextArea.class.php
@@ -29,74 +29,37 @@
import('form.FormElement');
class TextArea extends FormElement {
- var $mPassword = false;
- var $mColumns = "";
- var $mRows = "";
- var $cClassName = "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() {
- if (!$this->isRenderable()) return "";
-
- if ($this->id=="") $this->id = $this->mName;
-
- $js_maxlen = "";
+ function getHtml() {
+
+ 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;
- }
}