Brimbox Logo Brimbox Version 2.3.4 Released

dropdowns>>

Method to retrieve dropdowns, usually $arr_dropdowns, which contain arrays of all the dropdowns for the columns in a definition or layout.

Class: bb_meta, called as $main

File: bb_meta (php)

Declaration:

function dropdowns($con, $row_type, $key_type = false)

Usage:

$main->dropdowns($con, $row_type, $key_type)

Returns: array of dropdowns for a given layout, usually called $arr_dropdowns.

Note: individual dropdowns are saved in order so no sorting is done in this function.

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

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

Parameter: $key_type (boolean)
Whether to reduce array keys by integer (false), string (true) or neither (NULL)
(currently there are no string keys at the layout level).

Updated: 2016-07-11