From 8a90b1c4ec229046d60d41bfdcc17cb2377b7d8d Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 22 Jan 2003 14:50:25 +0000 Subject: [PATCH] added a method to add html --- lib/visualpatterns/PatternCustom.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/visualpatterns/PatternCustom.inc b/lib/visualpatterns/PatternCustom.inc index 592ec13..5b56386 100644 --- a/lib/visualpatterns/PatternCustom.inc +++ b/lib/visualpatterns/PatternCustom.inc @@ -15,16 +15,25 @@ class PatternCustom { /** * Set the HTML string * - * @param $sNewValue new HTML string + * @param string new HTML string */ function setHtml($sNewValue) { $this->sHtml = $sNewValue; } + /** + * Appends to the html string + * + * @param string the html to append + */ + function addHtml($sMoreHtml) { + $this->sHtml = $this->sHtml . $sMoreHtml; + } + /** * Render the object * - * @return html string + * @return string html string */ function & render() { return $this->sHtml; -- libgit2 0.21.4