class ChartController extends AbstractController

Handles table related logic

Properties

protected Response $response from AbstractController
protected DatabaseInterface $dbi from AbstractController
protected Template $template from AbstractController
protected string $db from AbstractController
protected string $table from AbstractController
protected string $sql_query
protected string $url_query
protected array $cfg

Methods

__construct(Response $response, DatabaseInterface $dbi, Template $template, string $db, string $table, string $sql_query, string $url_query, array $cfg)

Constructor

void
indexAction()

Execute the query and return the result

void
ajaxAction()

Handle ajax request

Details

at line 55
__construct(Response $response, DatabaseInterface $dbi, Template $template, string $db, string $table, string $sql_query, string $url_query, array $cfg)

Constructor

Parameters

Response $response Response object
DatabaseInterface $dbi DatabaseInterface object
Template $template Template that should be used (if provided, default one otherwise)
string $db Database name
string $table Table name
string $sql_query Query
string $url_query Query URL
array $cfg Configuration

at line 77
void indexAction()

Execute the query and return the result

Return Value

void

at line 201
void ajaxAction()

Handle ajax request

Return Value

void