class StructureController extends AbstractController (View source)

Displays table structure infos like columns, indexes, size, rows and allows manipulation of indexes and columns.

Properties

protected ResponseRenderer $response from  AbstractController
protected Template $template from  AbstractController
protected string $db from  AbstractController
protected string $table from  AbstractController
protected Table $tableObj

Methods

__construct(ResponseRenderer $response, Template $template, string $db, string $table, Relation $relation, Transformations $transformations, CreateAddField $createAddField, RelationCleanup $relationCleanup, DatabaseInterface $dbi, FlashMessages $flash)

No description

void
render(string $templatePath, array $templateData = [])

No description

void
addScriptFiles(array $files)

No description

bool
hasDatabase()

No description

void
redirect(string $route, array $params = [])

No description

void
__invoke()

No description

string
displayStructure(array $cfgRelation, array $columns_with_unique_index, Index|false $primary_index, array $fields, array $columns_with_index, bool $isSystemSchema)

Displays the table structure ('show table' works correct since 3.23.03)

string
getTableStats(bool $isSystemSchema)

Get HTML snippet for display table statistics

Details

__construct(ResponseRenderer $response, Template $template, string $db, string $table, Relation $relation, Transformations $transformations, CreateAddField $createAddField, RelationCleanup $relationCleanup, DatabaseInterface $dbi, FlashMessages $flash)

No description

Parameters

ResponseRenderer $response
Template $template
string $db
string $table
Relation $relation
Transformations $transformations
CreateAddField $createAddField
RelationCleanup $relationCleanup
DatabaseInterface $dbi
FlashMessages $flash

protected void render(string $templatePath, array $templateData = [])

No description

Parameters

string $templatePath
array $templateData

Return Value

void

protected void addScriptFiles(array $files)

No description

Parameters

array $files

Return Value

void

protected bool hasDatabase()

No description

Return Value

bool

protected void redirect(string $route, array $params = [])

No description

Parameters

string $route
array $params

Return Value

void

void __invoke()

No description

Return Value

void

protected string displayStructure(array $cfgRelation, array $columns_with_unique_index, Index|false $primary_index, array $fields, array $columns_with_index, bool $isSystemSchema)

Displays the table structure ('show table' works correct since 3.23.03)

Parameters

array $cfgRelation

current relation parameters

array $columns_with_unique_index

Columns with unique index

Index|false $primary_index

primary index or false if no one exists

array $fields

Fields

array $columns_with_index

Columns with index

bool $isSystemSchema

Return Value

string

protected string getTableStats(bool $isSystemSchema)

Get HTML snippet for display table statistics

Parameters

bool $isSystemSchema

Return Value

string