Brimbox Logo Brimbox Version 2.3.4 Released

joins>>

Method to check or get joins from the layouts definitions depending on the parameters passed.

Class: bb_meta, called as $main

File: bb_meta.php (php)

Declaration:

function joins($con, $row_type_1 = NULL, $row_type_2 = NULL)

Usage:

$main->joins($con, $row_type_1, $row_type_2)

Returns: Three possibilities.

  • If row_type_1 and row_type_2 are both populated returns true if join exists, false otherwise.
  • If row_type_1 is populated and row_type_2 is not returns all the layouts row_type_1 is joined to.
  • If row_type_1 and row_type_2 are not populated returns all joins as an array.

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

Parameter: $row_type_1 (integer)
The layout left side or lessor row type for which to test or get joins.

Parameter: $row_type_2 (integer)
The layout right side or greater row type for which to test or get joins.

Updated: 2017-08-16