PHP Класс Crud\Action\AddAction

Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt
Наследование: extends BaseAction, use trait Crud\Traits\RedirectTrait, use trait Crud\Traits\SaveMethodTrait, use trait Crud\Traits\SerializeTrait, use trait Crud\Traits\ViewTrait, use trait Crud\Traits\ViewVarTrait
Показать файл Открыть проект

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

Свойство Тип Описание
$_defaultConfig array enabled Is this crud action enabled or disabled view A map of the controller action and the view to render If NULL (the default) the controller action name will be used relatedModels is a map of the controller action and the whether it should fetch associations lists to be used in select boxes. An array as value means it is enabled and represent the list of model associations to be fetched saveOptions Options array used for $options argument of newEntity() and save method. If you configure a key with your action name, it will override the default settings.

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

Метод Описание
_error ( Crud\Event\Subject $subject ) : void Post error callback
_get ( ) : void HTTP GET handler
_post ( ) : Response | null HTTP POST handler
_put ( ) : Response | null HTTP PUT handler
_success ( Crud\Event\Subject $subject ) : Response Post success callback

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

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

Post error callback
protected _error ( Crud\Event\Subject $subject ) : void
$subject Crud\Event\Subject Event subject
Результат void

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

HTTP GET handler
protected _get ( ) : void
Результат void

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

HTTP POST handler
protected _post ( ) : Response | null
Результат Cake\Network\Response | null

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

HTTP PUT handler
protected _put ( ) : Response | null
Результат Cake\Network\Response | null

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

Post success callback
protected _success ( Crud\Event\Subject $subject ) : Response
$subject Crud\Event\Subject Event subject
Результат Cake\Network\Response

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

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

enabled Is this crud action enabled or disabled view A map of the controller action and the view to render If NULL (the default) the controller action name will be used relatedModels is a map of the controller action and the whether it should fetch associations lists to be used in select boxes. An array as value means it is enabled and represent the list of model associations to be fetched saveOptions Options array used for $options argument of newEntity() and save method. If you configure a key with your action name, it will override the default settings.
protected array $_defaultConfig
Результат array