summaryrefslogtreecommitdiffstats
path: root/system/libraries/Table.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-28 21:06:45 +0200
committeradmin <devnull@localhost>2006-10-28 21:06:45 +0200
commit41cece9ce497c87aa49bc22a3557441148b99754 (patch)
tree3ad87ee9241b2f0ac944c8503355c0043895c201 /system/libraries/Table.php
parentdede273500cef3700e213d7963cfc4fd7374c05a (diff)
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