diff options
author | ahriman <ahriman@falte.red> | 2019-01-02 04:57:35 +0000 |
---|---|---|
committer | ahriman <ahriman@falte.red> | 2019-01-02 04:57:35 +0000 |
commit | 2bd7f83a6495011ada78ca8a9f2af417caf01760 (patch) | |
tree | f9acdb7f09e011c65330ab993d4db3620787dbfb /wiki/inc/Form/ValueElement.php | |
parent | bcb215c3a7e914d05f166846a33860e48bba64fb (diff) | |
download | site-2bd7f83a6495011ada78ca8a9f2af417caf01760.tar.gz |
removed dokuwiki
Diffstat (limited to 'wiki/inc/Form/ValueElement.php')
-rw-r--r-- | wiki/inc/Form/ValueElement.php | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/wiki/inc/Form/ValueElement.php b/wiki/inc/Form/ValueElement.php deleted file mode 100644 index 88db167..0000000 --- a/wiki/inc/Form/ValueElement.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php - -namespace dokuwiki\Form; - -/** - * Class ValueElement - * - * Just like an Element but it's value is not part of its attributes - * - * What the value is (tag name, content, etc) is defined by the actual implementations - * - * @package dokuwiki\Form - */ -abstract class ValueElement extends Element { - - /** - * @var string holds the element's value - */ - protected $value = ''; - - /** - * @param string $type - * @param string $value - * @param array $attributes - */ - public function __construct($type, $value, $attributes = array()) { - parent::__construct($type, $attributes); - $this->val($value); - } - - /** - * Get or set the element's value - * - * @param null|string $value - * @return string|$this - */ - public function val($value = null) { - if($value !== null) { - $this->value = $value; - return $this; - } - return $this->value; - } - -} |