Brimbox Logo Brimbox Version 2.3.4 Released

get_default_column>>

Returns the first column col_type available. In Brimbox, all columns can be empty, so this function will return 1 if there are no columns set in a given layout.

Class: bb_main, called as $main

File: bb_main.php (php)

Declaration:

function get_default_column($arr_columns, $check = 0)

Usage:

$default_col_type = $main->get_default_column($arr_columns, $check);

Returns: $col_type or first unsecured column in order. Returns 1 if no columns are set.

Parameter: $arr_column (array)
$arr_columns is the column array from the json_table in the database for the current $row_type. $arr_columns is stored in order.

Parameter: $check (optional integer)
If $check is set function will only check columns with a security level less than $check value. If $check is 0, all columns are considered.

Updated: 2016-07-17