diff options
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; - } - -} |