class SearchController extends AbstractController

Handles table search tab.

Display table search form, create SQL query from form data and call Sql::executeQueryAndSendQueryResponse() to execute it.

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

Methods

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

No description

void
index()

Index action

void
getDataRowAction()

Get data row action

void
doSelectionAction()

Do selection action

void
displaySelectionFormAction()

Display selection form action

void
rangeSearchAction()

Range search action

array
getColumnMinMax(string $column)

Finds minimum and maximum value of a given column.

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

at line 98
__construct(Response $response, DatabaseInterface $dbi, Template $template, string $db, string $table, Search $search, Relation $relation)

Parameters

Response $response Response object
DatabaseInterface $dbi DatabaseInterface object
Template $template Template that should be used
string $db Database name
string $table Table name
Search $search A Search instance.
Relation $relation Relation instance

at line 182
void index()

Index action

Return Value

void

at line 219
void getDataRowAction()

Get data row action

Return Value

void

at line 252
void doSelectionAction()

Do selection action

Return Value

void

at line 288
void displaySelectionFormAction()

Display selection form action

Return Value

void

at line 320
void rangeSearchAction()

Range search action

Return Value

void

at line 333
array getColumnMinMax(string $column)

Finds minimum and maximum value of a given column.

Parameters

string $column Column name

Return Value

array

at line 352
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