PHP 클래스 Crud\Action\EditAction

Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt
상속: extends BaseAction, use trait Crud\Traits\FindMethodTrait, use trait Crud\Traits\RedirectTrait, use trait Crud\Traits\SaveMethodTrait, use trait Crud\Traits\ViewTrait, use trait Crud\Traits\ViewVarTrait
파일 보기 프로젝트 열기: friendsofcake/crud

보호된 프로퍼티들

프로퍼티 타입 설명
$_defaultConfig array enabled Is this crud action enabled or disabled findMethod The default Model::find() method for reading data 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 patchEntity() and save method. If you configure a key with your action name, it will override the default settings.

보호된 메소드들

메소드 설명
_error ( Crud\Event\Subject $subject ) : void Error callback
_get ( string | null $id = null ) : void HTTP GET handler
_post ( string | null $id = null ) : Response | null HTTP POST handler
_put ( string | null $id = null ) : Response | null HTTP PUT handler
_success ( Crud\Event\Subject $subject ) : Response Success callback

메소드 상세

_error() 보호된 메소드

Error callback
protected _error ( Crud\Event\Subject $subject ) : void
$subject Crud\Event\Subject Event subject
리턴 void

_get() 보호된 메소드

HTTP GET handler
protected _get ( string | null $id = null ) : void
$id string | null Record id
리턴 void

_post() 보호된 메소드

Thin proxy for _put
protected _post ( string | null $id = null ) : Response | null
$id string | null Record id
리턴 Cake\Network\Response | null

_put() 보호된 메소드

HTTP PUT handler
protected _put ( string | null $id = null ) : Response | null
$id string | null Record id
리턴 Cake\Network\Response | null

_success() 보호된 메소드

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 findMethod The default Model::find() method for reading data 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 patchEntity() and save method. If you configure a key with your action name, it will override the default settings.
protected array $_defaultConfig
리턴 array