Свойство | Type | Description | |
---|---|---|---|
$auto_heading | boolean | Whether or not to automatically create the table header | |
$caption | string | Table caption | |
$empty_cells | string | Contents of empty cells | |
$function | function | Callback for custom table layout | |
$heading | array | Data for table heading | |
$newline | string | Newline setting | |
$rows | array | Data for table rows | |
$template | array | Table layout template |
Méthode | Description | |
---|---|---|
__construct ( array $config = [] ) : void | Set the template from the table config file if it exists | |
add_row ( $args = [] ) : CI_Table | Add a table row | |
clear ( ) : CI_Table | Clears the table arrays. Useful if multiple tables are being generated | |
generate ( mixed $table_data = NULL ) : string | Generate the table | |
make_columns ( 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. | |
set_caption ( string $caption ) : CI_Table | Add a table caption | |
set_empty ( mixed $value ) : CI_Table | Set "empty" cells | |
set_heading ( $args = [] ) : CI_Table | Set the table heading | |
set_template ( array $template ) : boolean | Set the template |
Méthode | Description | |
---|---|---|
_compile_template ( ) : void | Compile Template | |
_default_template ( ) : array | Default Template | |
_prep_args ( $args ) : array | Prep Args | |
_set_from_array ( array $data ) : void | Set table data from an array | |
_set_from_db_result ( $object ) : void | Set table data from a database result object |
public __construct ( array $config = [] ) : void | ||
$config | array | (default: array()) |
Résultat | void |
protected _compile_template ( ) : void | ||
Résultat | void |
protected _default_template ( ) : array | ||
Résultat | array |
protected _prep_args ( $args ) : array | ||
Résultat | array |
protected _set_from_array ( array $data ) : void | ||
$data | array | |
Résultat | void |
protected _set_from_db_result ( $object ) : void | ||
Résultat | void |
public add_row ( $args = [] ) : CI_Table | ||
Résultat | CI_Table |
public clear ( ) : CI_Table | ||
Résultat | CI_Table |
public set_heading ( $args = [] ) : CI_Table | ||
Résultat | CI_Table |
public set_template ( array $template ) : boolean | ||
$template | array | |
Résultat | boolean |
public bool $auto_heading | ||
Résultat | boolean |
public function $function | ||
Résultat | function |