Property | Type | Description | |
---|---|---|---|
$_defaultConfig | array | ### Options - actions : Action name(s) to use PRG for. You can pass a single action as string or multiple as array. If boolean true all actions will be processed if false none. Default is ['index', 'lookup']. - queryStringToData : Set query string as request data. Default true. - queryStringWhitelist : An array of whitelisted query strings to be kept. Defaults to the Paginator 'sort', 'direction' and 'limit' ones. |
Method | Description | |
---|---|---|
conversion ( boolean $redirect = true ) : |
POST to GET / GET to POST conversion | |
startup ( ) : |
Checks if the current request has posted data and redirects the users to the same action after converting the post data into GET params |
Method | Description | |
---|---|---|
_actionCheck ( ) : boolean | Checks if the action should be processed by the component. | |
_filterParams ( ) : array | Filters the params from POST data and merges in the whitelisted query string ones. |
protected _actionCheck ( ) : boolean | ||
return | boolean |
protected _filterParams ( ) : array | ||
return | array |
public conversion ( boolean $redirect = true ) : |
||
$redirect | boolean | Redirect on post, default true. |
return |
protected array $_defaultConfig | ||
return | array |