class RelationController extends AbstractController

Handles table relation logic

Properties

protected Response $response from AbstractController
protected DatabaseInterface $dbi from AbstractController
protected Template $template from AbstractController
protected string $db from AbstractController
protected string $table from AbstractController
protected array $options_array
protected array $cfgRelation
protected array $existrel
protected string $tbl_storage_engine
protected array $existrel_foreign
protected Table $upd_query

Methods

__construct(Response $response, DatabaseInterface $dbi, Template $template, string $db, string $table, array|null $options_array, array|null $cfgRelation, string $tbl_storage_engine, array|null $existrel, array|null $existrel_foreign, Table $upd_query, Relation $relation)

Constructor

void
indexAction()

Index

void
updateForDisplayField()

Update for display field

void
updateForForeignKeysAction()

Update for FK

void
updateForInternalRelationAction()

Update for internal relation

void
getDropdownValueForTableAction()

Send table columns for foreign table dropdown

void
getDropdownValueForDbAction()

Send database selection values for dropdown

Details

at line 79
__construct(Response $response, DatabaseInterface $dbi, Template $template, string $db, string $table, array|null $options_array, array|null $cfgRelation, string $tbl_storage_engine, array|null $existrel, array|null $existrel_foreign, Table $upd_query, Relation $relation)

Constructor

Parameters

Response $response Response object
DatabaseInterface $dbi DatabaseInterface object
Template $template Template that should be used (if provided, default one otherwise)
string $db Database name
string $table Table name
array|null $options_array Options
array|null $cfgRelation Config relation
string $tbl_storage_engine Table storage engine
array|null $existrel Relations
array|null $existrel_foreign External relations
Table $upd_query Update query
Relation $relation Relation instance

at line 109
void indexAction()

Index

Return Value

void

at line 223
void updateForDisplayField()

Update for display field

Return Value

void

at line 245
void updateForForeignKeysAction()

Update for FK

Return Value

void

at line 294
void updateForInternalRelationAction()

Update for internal relation

Return Value

void

at line 325
void getDropdownValueForTableAction()

Send table columns for foreign table dropdown

Return Value

void

at line 360
void getDropdownValueForDbAction()

Send database selection values for dropdown

Return Value

void