class SqlController extends AbstractController

Database SQL executor

Properties

protected Response $response from AbstractController
protected DatabaseInterface $dbi from AbstractController
protected Template $template from AbstractController
protected string $db from AbstractController

Methods

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

AbstractController constructor.

string
index(array $params, SqlQueryForm $sqlQueryForm)

No description

Details

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

AbstractController 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

at line 26
string index(array $params, SqlQueryForm $sqlQueryForm)

Parameters

array $params Request parameters
SqlQueryForm $sqlQueryForm SqlQueryForm instance

Return Value

string HTML