final class SearchForm (View source)

Builds the column data shared by the table search and zoom search forms.

Methods

__construct(DatabaseInterface $dbi, Relation $relation, Template $template, Config $config)

No description

getColumns(string $database, string $table)

Gets all the columns of a table along with their types, collations and whether null or not.

array
getColumnProperties(SearchColumns $columns, int $searchIndex, int $columnIndex, string $formId)

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

Details

__construct(DatabaseInterface $dbi, Relation $relation, Template $template, Config $config)

No description

Parameters

DatabaseInterface $dbi
Relation $relation
Template $template
Config $config

SearchColumns getColumns(string $database, string $table)

Gets all the columns of a table along with their types, collations and whether null or not.

Parameters

string $database
string $table

Return Value

SearchColumns

array getColumnProperties(SearchColumns $columns, int $searchIndex, int $columnIndex, string $formId)

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

Parameters

SearchColumns $columns
int $searchIndex

Row number in table search form

int $columnIndex

Column index in the column names list

string $formId

ID of the search form, used by the criteria input box

Return Value

array

Array containing column's properties