about summary refs log tree commit diff stats
path: root/wiki/inc/Form/TextareaElement.php
diff options
context:
space:
mode:
authorahriman <ahriman@falte.red>2019-01-02 04:57:35 +0000
committerahriman <ahriman@falte.red>2019-01-02 04:57:35 +0000
commit2bd7f83a6495011ada78ca8a9f2af417caf01760 (patch)
treef9acdb7f09e011c65330ab993d4db3620787dbfb /wiki/inc/Form/TextareaElement.php
parentbcb215c3a7e914d05f166846a33860e48bba64fb (diff)
downloadsite-2bd7f83a6495011ada78ca8a9f2af417caf01760.tar.gz
removed dokuwiki
Diffstat (limited to 'wiki/inc/Form/TextareaElement.php')
-rw-r--r--wiki/inc/Form/TextareaElement.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/wiki/inc/Form/TextareaElement.php b/wiki/inc/Form/TextareaElement.php
deleted file mode 100644
index 92741ee..0000000
--- a/wiki/inc/Form/TextareaElement.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-namespace dokuwiki\Form;
-
-/**
- * Class TextareaElement
- * @package dokuwiki\Form
- */
-class TextareaElement extends InputElement {
-
-    /**
-     * @var string the actual text within the area
-     */
-    protected $text;
-
-    /**
-     * @param string $name The name of this form element
-     * @param string $label The label text for this element
-     */
-    public function __construct($name, $label) {
-        parent::__construct('textarea', $name, $label);
-        $this->attr('dir', 'auto');
-    }
-
-    /**
-     * Get or set the element's value
-     *
-     * This is the preferred way of setting the element's value
-     *
-     * @param null|string $value
-     * @return string|$this
-     */
-    public function val($value = null) {
-        if($value !== null) {
-            $this->text = cleanText($value);
-            return $this;
-        }
-        return $this->text;
-    }
-
-    /**
-     * The HTML representation of this element
-     *
-     * @return string
-     */
-    protected function mainElementHTML() {
-        if($this->useInput) $this->prefillInput();
-        return '<textarea ' . buildAttributes($this->attrs()) . '>' .
-        formText($this->val()) . '</textarea>';
-    }
-
-}