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 78
__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 108
void indexAction()

Index

Return Value

void

at line 225
void updateForDisplayField()

Update for display field

Return Value

void

at line 247
void updateForForeignKeysAction()

Update for FK

Return Value

void

at line 296
void updateForInternalRelationAction()

Update for internal relation

Return Value

void

at line 327
void getDropdownValueForTableAction()

Send table columns for foreign table dropdown

Return Value

void

at line 362
void getDropdownValueForDbAction()

Send database selection values for dropdown

Return Value

void