X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FTextArea.class.php;h=be884f0d88d1a2628c623b1db16b9df2d26ec601;hb=30634c0b3869d459552df1da06ec264fb1e6b086;hp=9cfd431580463d1e32c9c096f4b44bb2665116d9;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git
diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php
index 9cfd4315..be884f0d 100644
--- a/WEB-INF/lib/form/TextArea.class.php
+++ b/WEB-INF/lib/form/TextArea.class.php
@@ -29,76 +29,37 @@
import('form.FormElement');
class TextArea extends FormElement {
- var $mValue;
- var $mPassword = false;
- var $mColumns = "";
- var $mRows = "";
- var $cClassName = "TextArea";
+ var $mOnKeyPress = "";
- function TextArea($name,$value="")
- {
- $this->mName = $name;
- $this->mValue = $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->mId=="") $this->mId = $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;
- }
}
-?>
\ No newline at end of file