Brimbox Logo Brimbox Version 2.3.4 Released


Method to retrieve columns for a given layout (or $row_type) in array form from the json_table.

Class: bb_meta, called as $main

File: bb_meta.php (php)


function columns($con, $row_type, $key_type = false, $sort = true)


$main->columns($con, $row_type, $key_type, $sort);

Returns: the default columns array usually called $arr_columns.

Parameter: $con (database connector)
The database connection.

Parameter: $row_type (integer)
The layout type for which to retrieve columns.

Parameter: $key_type (boolean)
Whether to reduce array keys by integer (false), string (true) or neither (NULL).

Parameter: $sort (boolean)
Whether to sort on the order field for standard layout with integer keys.

Updated: 2016-07-11