class ZoomSearchController extends AbstractController (View source)

Handles table zoom search tab.

Display table zoom search form, create SQL queries from form data.

Properties

protected ResponseRenderer $response from  AbstractController
protected Template $template from  AbstractController
protected string $db from  AbstractController
protected string $table from  AbstractController

Methods

__construct(ResponseRenderer $response, Template $template, string $db, string $table, Search $search, Relation $relation, DatabaseInterface $dbi)

No description

void
render(string $templatePath, array $templateData = [])

No description

void
addScriptFiles(array $files)

No description

bool
hasDatabase()

No description

void
redirect(string $route, array $params = [])

No description

void
__invoke()

No description

void
displaySelectionFormAction(string $dataLabel = null)

Display selection form action

void
getDataRowAction()

Get data row action

void
changeTableInfoAction()

Change table info action

void
zoomSubmitAction(string $dataLabel, string $goto)

Zoom submit action

array
getColumnProperties(int $search_index, int $column_index)

Provides a column's type, collation, operators list, and criteria value to display in table search form

Details

__construct(ResponseRenderer $response, Template $template, string $db, string $table, Search $search, Relation $relation, DatabaseInterface $dbi)

No description

Parameters

ResponseRenderer $response
Template $template
string $db
string $table
Search $search
Relation $relation
DatabaseInterface $dbi

protected void render(string $templatePath, array $templateData = [])

No description

Parameters

string $templatePath
array $templateData

Return Value

void

protected void addScriptFiles(array $files)

No description

Parameters

array $files

Return Value

void

protected bool hasDatabase()

No description

Return Value

bool

protected void redirect(string $route, array $params = [])

No description

Parameters

string $route
array $params

Return Value

void

void __invoke()

No description

Return Value

void

void displaySelectionFormAction(string $dataLabel = null)

Display selection form action

Parameters

string $dataLabel

Data label

Return Value

void

void getDataRowAction()

Get data row action

Return Value

void

void changeTableInfoAction()

Change table info action

Return Value

void

void zoomSubmitAction(string $dataLabel, string $goto)

Zoom submit action

Parameters

string $dataLabel

Data label

string $goto

Goto

Return Value

void

array getColumnProperties(int $search_index, int $column_index)

Provides a column's type, collation, operators list, and criteria value to display in table search form

Parameters

int $search_index

Row number in table search form

int $column_index

Column index in ColumnNames array

Return Value

array

Array containing column's properties