diff options
author | alecpl <alec@alec.pl> | 2011-03-05 17:09:46 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-03-05 17:09:46 +0000 |
commit | 6f6efa20d742579381f450400f55e8bce7d839f0 (patch) | |
tree | 28f6a9a2a26b55b22b5024c9f000c9c6f9f47b7b /program/include/html.php | |
parent | 6a4bccb7965e281f0a9ef11b90cd71058924ca16 (diff) |
- Add html_table::remove_body() function
Diffstat (limited to 'program/include/html.php')
-rw-r--r-- | program/include/html.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/program/include/html.php b/program/include/html.php index ef7314e6f..34536e4c6 100644 --- a/program/include/html.php +++ b/program/include/html.php @@ -524,7 +524,6 @@ class html_select extends html } } - /** * Get HTML code for this object * @@ -648,7 +647,6 @@ class html_table extends html } } - /** * Jump to next row * @@ -729,5 +727,15 @@ class html_table extends html { return count($this->rows); } + + /** + * Remove table body (all rows) + */ + public function remove_body() + { + $this->rows = array(); + $this->rowindex = 0; + } + } |