Brimbox Logo Brimbox Version 2.3.4 Released

standard>>

Method to create a standard link; post_key and row_type are passed in through the database row, along with layouts and the link text. The target module for the link is also passed in.

Class: bb_links, called as $main

File: bb_links.php (php)

Declaration:

function standard($row, $arr_layouts, $target, $text, $params = array())

Usage:

$main->standard($row, $arr_layouts, $target, $text, $params);

Outputs: A standard link for underneath a record.

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 for the link.

Parameter: $params (array)
An optional array containing parameters to include when calling the function.

  • button, button number to be submitted in bb_submit_form(), (integer, default 0).
  • filter, array of row_type(s) to display this particular related link on, (array, default array()).
  • class, the class of the button outputted, default is a link (string, default "link rightmargin")

 

Updated: 2016-07-09