Brimbox Logo Brimbox Version 2.3.4 Released


Method to retrieve alternative column definitions that are defined with filter bb_column_names_definitions and stored along with the default column data in the json_table.

Class: bb_meta, called as $main

File: bb_meta.php (php)


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


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

Returns: an alternative columns definition as an array using $definition as a key.

Note: $definition will be the associative key from $arr_definitions which can be added onto with filter bb_column_names_definitions.

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

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

Parameter: $definition (string)
The associative key used to define the alternative columns definition.

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