From 12a4e4d1ed827c59290838d5a11d75ad32aa28f1 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 8 May 2015 16:15:16 +0200 Subject: start of rewriting the form handling This is jsut a small beginning. Not all elements are there, yet. It's also completely untested so far. --- inc/Form/TextareaElement.php | 50 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 inc/Form/TextareaElement.php (limited to 'inc/Form/TextareaElement.php') diff --git a/inc/Form/TextareaElement.php b/inc/Form/TextareaElement.php new file mode 100644 index 000000000..a8486266f --- /dev/null +++ b/inc/Form/TextareaElement.php @@ -0,0 +1,50 @@ +text = $value; + return $this; + } + return $this->text; + } + + /** + * The HTML representation of this element + * + * @return string + */ + protected function mainElementHTML() { + if($this->useInput) $this->prefillInput(); + return ''; + } + +} -- cgit v1.2.3 From de19515f04567db78bd41d5bff68a88bfb8c2a22 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 8 May 2015 19:12:21 +0200 Subject: started with the compatibility layer --- inc/Form/TextareaElement.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/Form/TextareaElement.php') diff --git a/inc/Form/TextareaElement.php b/inc/Form/TextareaElement.php index a8486266f..9d461fdf5 100644 --- a/inc/Form/TextareaElement.php +++ b/inc/Form/TextareaElement.php @@ -18,6 +18,7 @@ class TextareaElement extends InputElement { */ public function __construct($name, $label) { parent::__construct('textarea', $name, $label); + $this->attr('dir', 'auto'); } /** -- cgit v1.2.3