diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-08 20:37:06 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-08 20:37:06 +0200 |
commit | 64744a10c5578602141ae2977274eec3fcff1f44 (patch) | |
tree | 83c0f7bbac3ec45a05ce4da474aebb567ec27845 /inc/Form/HTMLElement.php | |
parent | de19515f04567db78bd41d5bff68a88bfb8c2a22 (diff) | |
download | rpg-64744a10c5578602141ae2977274eec3fcff1f44.tar.gz rpg-64744a10c5578602141ae2977274eec3fcff1f44.tar.bz2 |
more elements and work on the legacy support
Diffstat (limited to 'inc/Form/HTMLElement.php')
-rw-r--r-- | inc/Form/HTMLElement.php | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/inc/Form/HTMLElement.php b/inc/Form/HTMLElement.php index 06f27d736..591cf472f 100644 --- a/inc/Form/HTMLElement.php +++ b/inc/Form/HTMLElement.php @@ -8,33 +8,14 @@ namespace dokuwiki\Form; * * @package dokuwiki\Form */ -class HTMLElement extends Element { +class HTMLElement extends ValueElement { - /** - * @var string the raw HTML held by this element - */ - protected $html = ''; /** * @param string $html */ public function __construct($html) { - parent::__construct('html'); - $this->val($html); - } - - /** - * Get or set the element's content - * - * @param null|string $html - * @return string|$this - */ - public function val($html = null) { - if($html !== null) { - $this->html = $html; - return $this; - } - return $this->html; + parent::__construct('html', $html); } /** |