diff options
author | admin <devnull@localhost> | 2006-10-28 21:06:45 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-28 21:06:45 +0200 |
commit | 41cece9ce497c87aa49bc22a3557441148b99754 (patch) | |
tree | 3ad87ee9241b2f0ac944c8503355c0043895c201 /system/libraries/Table.php | |
parent | dede273500cef3700e213d7963cfc4fd7374c05a (diff) |
Diffstat (limited to 'system/libraries/Table.php')
-rw-r--r-- | system/libraries/Table.php | 15 |
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 |