final class RelationController extends AbstractController (View source)

Display table relations for viewing and editing.

Includes phpMyAdmin relations and InnoDB relations.

Properties

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

Methods

__construct(ResponseRenderer $response, Template $template, string $db, string $table, Relation $relation, DatabaseInterface $dbi)

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()

Index

void
getDropdownValueForTable()

Send table columns for foreign table dropdown

void
getDropdownValueForDatabase(string $storageEngine)

Send database selection values for dropdown

Details

__construct(ResponseRenderer $response, Template $template, string $db, string $table, Relation $relation, DatabaseInterface $dbi)

No description

Parameters

ResponseRenderer $response
Template $template
string $db
string $table
Relation $relation
DatabaseInterface $dbi

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()

Index

Return Value

void

void getDropdownValueForTable()

Send table columns for foreign table dropdown

Return Value

void

void getDropdownValueForDatabase(string $storageEngine)

Send database selection values for dropdown

Parameters

string $storageEngine

Storage engine.

Return Value

void