class DatabasesController extends AbstractController

Handles viewing and creating and deleting databases

Properties

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

Methods

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

AbstractController constructor.

string
indexAction(array $params)

Index action

array
createDatabaseAction(array $params)

Handles creating a new database

array
dropDatabasesAction(array $params)

Handles dropping multiple databases

Details

in AbstractController at line 44
__construct(Response $response, DatabaseInterface $dbi, Template $template)

AbstractController constructor.

Parameters

Response $response Response object
DatabaseInterface $dbi DatabaseInterface object
Template $template Template that should be used (if provided, default one otherwise)

at line 64
string indexAction(array $params)

Index action

Parameters

array $params Request parameters

Return Value

string HTML

at line 155
array createDatabaseAction(array $params)

Handles creating a new database

Parameters

array $params Request parameters

Return Value

array JSON

at line 230
array dropDatabasesAction(array $params)

Handles dropping multiple databases

Parameters

array $params Request parameters

Return Value

array JSON