Commit 8a90b1c4ec229046d60d41bfdcc17cb2377b7d8d
1 parent
eaa00e2a
added a method to add html
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@469 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
11 additions
and
2 deletions
lib/visualpatterns/PatternCustom.inc
| @@ -15,16 +15,25 @@ class PatternCustom { | @@ -15,16 +15,25 @@ class PatternCustom { | ||
| 15 | /** | 15 | /** |
| 16 | * Set the HTML string | 16 | * Set the HTML string |
| 17 | * | 17 | * |
| 18 | - * @param $sNewValue new HTML string | 18 | + * @param string new HTML string |
| 19 | */ | 19 | */ |
| 20 | function setHtml($sNewValue) { | 20 | function setHtml($sNewValue) { |
| 21 | $this->sHtml = $sNewValue; | 21 | $this->sHtml = $sNewValue; |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | + /** | ||
| 25 | + * Appends to the html string | ||
| 26 | + * | ||
| 27 | + * @param string the html to append | ||
| 28 | + */ | ||
| 29 | + function addHtml($sMoreHtml) { | ||
| 30 | + $this->sHtml = $this->sHtml . $sMoreHtml; | ||
| 31 | + } | ||
| 32 | + | ||
| 24 | /** | 33 | /** |
| 25 | * Render the object | 34 | * Render the object |
| 26 | * | 35 | * |
| 27 | - * @return html string | 36 | + * @return string html string |
| 28 | */ | 37 | */ |
| 29 | function & render() { | 38 | function & render() { |
| 30 | return $this->sHtml; | 39 | return $this->sHtml; |