class AjaxController extends AbstractController

Class AjaxController

Properties

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

Methods

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

AjaxController constructor.

array
databases()

No description

array
tables(array $params)

No description

array
columns(array $params)

No description

array
getConfig(array $params)

No description

true|Message
setConfig(array $params)

No description

Details

at line 36
__construct(Response $response, DatabaseInterface $dbi, Template $template, Config $config)

AjaxController constructor.

Parameters

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

at line 45
array databases()

Return Value

array JSON

at line 56
array tables(array $params)

Parameters

array $params Request parameters

Return Value

array JSON

at line 65
array columns(array $params)

Parameters

array $params Request parameters

Return Value

array JSON

at line 79
array getConfig(array $params)

Parameters

array $params Request parameters

Return Value

array JSON

at line 88
true|Message setConfig(array $params)

Parameters

array $params Request parameters

Return Value

true|Message