diff --git a/HTML/QuickForm2/Element/Button.php b/HTML/QuickForm2/Element/Button.php index 8b0b276..b5d3064 100644 --- a/HTML/QuickForm2/Element/Button.php +++ b/HTML/QuickForm2/Element/Button.php @@ -79,12 +79,22 @@ public function toggleFrozen($freeze = null) * * @return $this */ - function setContent($content) + public function setContent($content) { $this->data['content'] = $content; return $this; } + /** + * Returns the contents of the button element + * + * @return string + */ + public function getContent() + { + return $this->data['content']; + } + /** * Button's value cannot be set via this method * diff --git a/HTML/QuickForm2/Element/Static.php b/HTML/QuickForm2/Element/Static.php index b736c62..ce745bb 100644 --- a/HTML/QuickForm2/Element/Static.php +++ b/HTML/QuickForm2/Element/Static.php @@ -146,7 +146,7 @@ public function toggleFrozen($freeze = null) * * @return $this */ - function setContent($content) + public function setContent($content) { $this->data['content'] = $content; return $this; @@ -157,7 +157,7 @@ function setContent($content) * * @return string|null */ - function getContent() + public function getContent() { return $this->data['content']; } @@ -258,5 +258,15 @@ public function setTagName($name, $forceClosing = true) return $this; } + + /** + * Returns the name of an HTML tag to wrap around the element's content + * + * @return string|null + */ + public function getTagName() + { + return $this->tagName; + } } ?> \ No newline at end of file