SearchController
class SearchController extends AbstractController (View source)
Handles table search tab.
Display table search form, create SQL query from form data and call Sql::executeQueryAndSendQueryResponse() to execute it.
Methods
__construct(ResponseRenderer $response, Template $template, Search $search, Relation $relation, DatabaseInterface $dbi, DbTableExists $dbTableExists)
No description
bool
checkParameters(array $params, bool $request = false)
Function added to avoid path disclosures.
from
AbstractController
void
sendErrorResponse(string $message, int $statusCode = 400)
No description
from
AbstractController
void
Details
__construct(ResponseRenderer $response, Template $template, Search $search, Relation $relation, DatabaseInterface $dbi, DbTableExists $dbTableExists)
No description
protected void
render(string $templatePath, array $templateData = [])
No description
protected void
addScriptFiles(array $files)
No description
protected void
redirect(string $route, array $params = [])
No description
protected bool
checkParameters(array $params, bool $request = false)
Function added to avoid path disclosures.
Called by each script that needs parameters.
protected void
sendErrorResponse(string $message, int $statusCode = 400)
No description
void
__invoke(ServerRequest $request)
Index action