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
index(array $params)

Index action

array
create(array $params)

Handles creating a new database

array
destroy(array $params)

Handles dropping multiple databases

Details

at line 65
__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

at line 80
string index(array $params)

Index action

Parameters

array $params Request parameters

Return Value

string HTML

at line 175
array create(array $params)

Handles creating a new database

Parameters

array $params Request parameters

Return Value

array JSON

at line 254
array destroy(array $params)

Handles dropping multiple databases

Parameters

array $params Request parameters

Return Value

array JSON