PHP 클래스 yii2tech\admin\actions\Callback

부터: 1.0
저자: Paul Klimov ([email protected])
상속: extends Action
파일 보기 프로젝트 열기: yii2tech/admin

공개 프로퍼티들

프로퍼티 타입 설명
$callback name of the model method, which should be invoked or callback, which should be executed for the found model. The signature of the callable should be: php function ($model) { }
$flash flash message to be set on success.

공개 메소드들

메소드 설명
run ( string $id ) : mixed Invokes configured method on the specified model.

메소드 상세

run() 공개 메소드

Invokes configured method on the specified model.
public run ( string $id ) : mixed
$id string the primary key of the model.
리턴 mixed response.

프로퍼티 상세

$callback 공개적으로 프로퍼티

name of the model method, which should be invoked or callback, which should be executed for the found model. The signature of the callable should be: php function ($model) { }
public $callback

$flash 공개적으로 프로퍼티

flash message to be set on success.
또한 보기: Action::setFlash() for details on how setup flash.
public $flash