X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FTextArea.class.php;h=5d48466853b8fcb8537e340724bc71b41f633dbd;hb=ad707342d0ab5a7f6fc6ceda9ba3deb408f5ac08;hp=8a4e20a5d0c964f1d09555b0712b6a92e230804b;hpb=f73f9902e51376cd8fb327cb49343d3a585f5255;p=timetracker.git diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php index 8a4e20a5..5d484668 100644 --- a/WEB-INF/lib/form/TextArea.class.php +++ b/WEB-INF/lib/form/TextArea.class.php @@ -29,27 +29,24 @@ 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 __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() { - if (!$this->isRenderable()) return ""; - + function getHtml() { + if ($this->id=="") $this->id = $this->mName; $js_maxlen = ""; @@ -70,8 +67,8 @@ class TextArea extends FormElement { $html .= " maxlength=\"$this->max_length\""; } - if ($this->mStyle!="") - $html .= " style=\"$this->mStyle\""; + if ($this->style!="") + $html .= " style=\"$this->style\""; if ($this->mOnKeyPress) { $html .= " onkeypress=\"$this->mOnKeyPress\"";