class IndexesController extends AbstractController

Displays index edit/creation form and handles it.

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

Methods

__construct(Response $response, DatabaseInterface $dbi, Template $template, string $db, string $table)

No description

void
index()

No description

void
displayForm(Index $index)

Display the form to edit/create an index

void
doSaveData(Index $index)

Process the data from the edit/create index form, run the query to build the new index and moves back to /table/sql

Details

in AbstractController at line 32
__construct(Response $response, DatabaseInterface $dbi, Template $template, string $db, string $table)

Parameters

Response $response Response object
DatabaseInterface $dbi DatabaseInterface object
Template $template Template that should be used
string $db Database name
string $table Table name

at line 20
void index()

Return Value

void

at line 49
void displayForm(Index $index)

Display the form to edit/create an index

Parameters

Index $index An Index instance.

Return Value

void

at line 114
void doSaveData(Index $index)

Process the data from the edit/create index form, run the query to build the new index and moves back to /table/sql

Parameters

Index $index An Index instance.

Return Value

void