$rows
$rows : array
Data for table rows
HTML Table Generating Class
Lets you create tables manually or from database result objects, or arrays.
set_heading( $args = array()) : \CI_Table
Set the table heading
Can be passed as an array or discreet params
$args |
make_columns(array $array = array(), integer $col_limit) : array
Set columns. Takes a one-dimensional array as input and creates a multi-dimensional array with a depth equal to the number of columns. This allows a single array with many elements to be displayed in a table that has a fixed column count.
array | $array | |
integer | $col_limit |
set_empty(mixed $value) : \CI_Table
Set "empty" cells
Can be passed as an array or discreet params
mixed | $value |
add_row( $args = array()) : \CI_Table
Add a table row
Can be passed as an array or discreet params
$args |
set_caption(string $caption) : \CI_Table
Add a table caption
string | $caption |
clear() : \CI_Table
Clears the table arrays. Useful if multiple tables are being generated
_set_from_db_result(\CI_DB_result $object) : void
Set table data from a database result object
\CI_DB_result | $object | Database result object |