final class StructureController implements InvocableController (View source)

Handles database structure logic

Methods

__construct(ResponseRenderer $response, Template $template, Relation $relation, Replication $replication, DatabaseInterface $dbi, TrackingChecker $trackingChecker, PageSettings $pageSettings, DbTableExists $dbTableExists, Config $config)

No description

__invoke(ServerRequest $request)

No description

array
getDbInfo(string $db, mixed $sortParam, mixed $sortOrderParam, mixed $tableGroupParam, mixed $tableTypeParam)

Gets the list of tables in the current db and information about these tables if possible.

int
getTableListPosition(string|null $posParam, string $db)

No description

Details

__construct(ResponseRenderer $response, Template $template, Relation $relation, Replication $replication, DatabaseInterface $dbi, TrackingChecker $trackingChecker, PageSettings $pageSettings, DbTableExists $dbTableExists, Config $config)

No description

Parameters

ResponseRenderer $response
Template $template
Relation $relation
Replication $replication
DatabaseInterface $dbi
TrackingChecker $trackingChecker
PageSettings $pageSettings
DbTableExists $dbTableExists
Config $config

Response __invoke(ServerRequest $request)

No description

Parameters

ServerRequest $request

Return Value

Response

array getDbInfo(string $db, mixed $sortParam, mixed $sortOrderParam, mixed $tableGroupParam, mixed $tableTypeParam)

Gets the list of tables in the current db and information about these tables if possible.

Parameters

string $db
mixed $sortParam
mixed $sortOrderParam
mixed $tableGroupParam
mixed $tableTypeParam

Return Value

array

int getTableListPosition(string|null $posParam, string $db)

No description

Parameters

string|null $posParam
string $db

Return Value

int