PHP Класс Search\Controller\Component\PrgComponent

Наследование: extends Cake\Controller\Component
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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.

Открытые методы

Метод Описание
conversion ( boolean $redirect = true ) : Response | null POST to GET / GET to POST conversion
startup ( ) : Response | null Checks if the current request has posted data and redirects the users to the same action after converting the post data into GET params

Защищенные методы

Метод Описание
_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.

Описание методов

_actionCheck() защищенный Метод

Checks if the action should be processed by the component.
protected _actionCheck ( ) : boolean
Результат boolean

_filterParams() защищенный Метод

Filters the params from POST data and merges in the whitelisted query string ones.
protected _filterParams ( ) : array
Результат array

conversion() публичный Метод

POST to GET / GET to POST conversion
public conversion ( boolean $redirect = true ) : Response | null
$redirect boolean Redirect on post, default true.
Результат Cake\Network\Response | null

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
public startup ( ) : Response | null
Результат Cake\Network\Response | null

Описание свойств

$_defaultConfig защищенное свойство

### 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.
protected array $_defaultConfig
Результат array