class VariablesController extends AbstractController (View source)

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)

No description

void
render(string $template, array $data = [])

No description

void
addScriptFiles(array $files)

No description

void
index()

No description

void
getValue(array $params)

Handle the AJAX request for a single variable value

void
setValue(array $vars)

Handle the AJAX request for setting value for a single variable

Details

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

Parameters

Response $response Response object
DatabaseInterface $dbi DatabaseInterface object
Template $template Template that should be used

protected void render(string $template, array $data = [])

Parameters

string $template Template path name.
array $data Associative array of template variables.

Return Value

void

protected void addScriptFiles(array $files)

Parameters

array $files

Return Value

void

void index()

Return Value

void

void getValue(array $params)

Handle the AJAX request for a single variable value

Parameters

array $params Request parameters

Return Value

void

void setValue(array $vars)

Handle the AJAX request for setting value for a single variable

Parameters

array $vars Request parameters

Return Value

void