Brimbox Logo Brimbox Version 2.3.4 Released


Build a subquery to check the existence and row_type of a related record.

Class: bb_database, called as $main

File: bb_database.php (php)


function process_related(&$arr_select_where, $arr_layouts, $value, $str)


$main->process_related($arr_select_where, $arr_layouts, $value, $str);

Note: this function called in pluggable function bb_data_table_row_input.

Parameter: $arr_select_where (array)
Empty array passed as reference and populated with a subquery parts suitable for a WHERE EXISTS clause in an update or insert statement.

Parameter: $arr_layouts_reduced (array)
Reduced layouts JSON meta data passed in.

Parameter: $value (array)
Column array part passed in from foreach loop.

Parameter: $str (string)
Primary field from related layout string with the related record information prepended.

Updated: 2016-07-09