Brimbox Logo Brimbox Version 2.3.4 Released

get_default_layout>>

Returns the first layout row_type available. By default, in Brimbox, one layout must be set.

Class: bb_main, called as $main

File: bb_main.php (php)

Declaration:

function get_default_layout($arr_layouts, $check = 0)

Usage:

$default_row_type = $main->get_default_layout($arr_layouts, $check);

Returns: $row_type of first unsecured layout in order. Returns 1 if for some reason no layout is set.

Parameter: $arr_layouts (array)
$arr_layouts is the layout array from the json_table in the database.

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

Updated: 2016-07-17