diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-05 17:09:46 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-05 17:09:46 +0000 |
| commit | b8c247a8773b945369a5858275c86e2448cdc7db (patch) | |
| tree | 2cb1ec270de79e90a63c7143b7e03ef459f3bf86 /roundcubemail/program/include | |
| parent | c1fd7d3cbffe0aeb13dc67c11c449ecc5f4a88b7 (diff) | |
- Add html_table::remove_body() function
git-svn-id: https://svn.roundcube.net/trunk@4594 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/html.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/roundcubemail/program/include/html.php b/roundcubemail/program/include/html.php index ef7314e6f..34536e4c6 100644 --- a/roundcubemail/program/include/html.php +++ b/roundcubemail/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; + } + } |
