summaryrefslogtreecommitdiffstats
path: root/system/libraries/Table.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Table.php')
-rw-r--r--system/libraries/Table.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/libraries/Table.php b/system/libraries/Table.php
index 01c45c73b..183e8895a 100644
--- a/system/libraries/Table.php
+++ b/system/libraries/Table.php
@@ -263,6 +263,21 @@ class CI_Table {
// --------------------------------------------------------------------
/**
+ * Clears the table arrays. Useful if multiple tables are beting generated
+ *
+ * @access public
+ * @return void
+ */
+ function clear_data()
+ {
+ $this->rows = array();
+ $this->heading = array();
+ $this->auto_heading = TRUE;
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Set table data from a database result object
*
* @access public