Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Project Settings API > Methods

Project Settings API: getMasterTables()

Scroll Prev Next More

 

Returns information about tables configured as masters of the current table.

Syntax

$settings->getMasterTables();

Arguments

No arguments.

Return value

An array of master-table relationship definitions. Each item contains table, masterKeys, and detailsKeys elements. Returns an empty array if the table has no masters.

Example

Display the master tables linked to Order Details.

$settings = new ProjectSettings("Order Details");
$masters = $settings->getMasterTables();
 
foreach ($masters as $master)
{
echo $master["table"] . "<br>";
}

See also:

getMasterKeys()

About Project Settings API

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software