class ChangeController implements InvocableController (View source)

Displays form for editing and inserting new table rows.

Methods

__construct(ResponseRenderer $response, Template $template, InsertEdit $insertEdit, Relation $relation, PageSettings $pageSettings, DbTableExists $dbTableExists, Config $config)

No description

__invoke(ServerRequest $request)

No description

array
urlParamsInEditMode(ServerRequest $request, array $urlParams, array $whereClauseArray)

Add some url parameters

Details

__construct(ResponseRenderer $response, Template $template, InsertEdit $insertEdit, Relation $relation, PageSettings $pageSettings, DbTableExists $dbTableExists, Config $config)

No description

Parameters

ResponseRenderer $response
Template $template
InsertEdit $insertEdit
Relation $relation
PageSettings $pageSettings
DbTableExists $dbTableExists
Config $config

Response __invoke(ServerRequest $request)

No description

Parameters

ServerRequest $request

Return Value

Response

array urlParamsInEditMode(ServerRequest $request, array $urlParams, array $whereClauseArray)

Add some url parameters

Parameters

ServerRequest $request
array $urlParams

containing $db and $table as url parameters

array $whereClauseArray

where clauses array

Return Value

array

Add some url parameters to $url_params array and return it