joinlinks>>
Method to loop through all the joined layouts of a layout creating "View Joins" links for all join possibilities of a given record.
Class: bb_links, called as $main
File: bb_links.php (php)
Declaration:
function joinlinks($row, $arr_layouts, $target, $text, $params = array())
Usage:
$main->joinlinks($row, $arr_layouts, $target, $text, $params);
Outputs: Loops through all joined layouts of the submitted $row
(and therefore row_type) outputting “View” links for the joined layouts.
Note: Link functions must have the first parameter be $row
and the second parameter be $arr_layouts
.
Parameter: $row (array, database row)
Valid database row from the data_table.
Parameter: $arr_layouts (array)
Layouts stored as JSON retrieved as PHP array.
Parameter: $target (string)
Module name to be targeted during post, will be the next module loaded.
Parameter: $text (string)
Text to prepend the plural layout name of the child record or records in the “View” link.
Parameter: $params (array)
An optional array containing parameters to include when calling the function.
button
, button number to be submitted inbb_submit_form()
, (integer, default 0
).check
, if set checks that the layout security is not greater than zeroclass
, the class of the button outputted, default is a link (string, default "link rightmargin"
)
Updated: 2017-08-15