From 6f6efa20d742579381f450400f55e8bce7d839f0 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sat, 05 Mar 2011 12:09:46 -0500
Subject: [PATCH] - Add html_table::remove_body() function
---
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 ef7314e..34536e4 100644
--- a/program/include/html.php
+++ b/program/include/html.php
@@ -524,7 +524,6 @@
}
}
-
/**
* Get HTML code for this object
*
@@ -648,7 +647,6 @@
}
}
-
/**
* Jump to next row
*
@@ -729,5 +727,15 @@
{
return count($this->rows);
}
+
+ /**
+ * Remove table body (all rows)
+ */
+ public function remove_body()
+ {
+ $this->rows = array();
+ $this->rowindex = 0;
+ }
+
}
--
Gitblit v1.9.1