class VariablesController extends AbstractController

Handles viewing and editing server variables

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

Handle the AJAX request for a single variable value

array
setValue(array $params)

Handle the AJAX request for setting value for a single variable

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

Index action

Parameters

array $params Request parameters

Return Value

string

at line 98
array getValue(array $params)

Handle the AJAX request for a single variable value

Parameters

array $params Request parameters

Return Value

array

at line 135
array setValue(array $params)

Handle the AJAX request for setting value for a single variable

Parameters

array $params Request parameters

Return Value

array