Function __global->get_relation_map_for_table
Definitions
sources/database_relations.php
- Get a map of foreign key relations, for a specific table.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $table | string | No | No | required parameter | N/A | N/A | A particular table |
Returns
- Map of foreign key relations
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a map of foreign key relations, for a specific table.
*
* @param string $table A particular table
* @return array Map of foreign key relations
*/
function get_relation_map_for_table(string $table) : array
* Get a map of foreign key relations, for a specific table.
*
* @param string $table A particular table
* @return array Map of foreign key relations
*/
function get_relation_map_for_table(string $table) : array
