From 41cece9ce497c87aa49bc22a3557441148b99754 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 28 Oct 2006 19:06:45 +0000 Subject: --- system/libraries/Table.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'system/libraries/Table.php') 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 @@ -262,6 +262,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 * -- cgit v1.2.3-24-g4f1b