PHP Класс yii2tech\admin\actions\Callback

С версии: 1.0
Автор: Paul Klimov ([email protected])
Наследование: extends Action
Показать файл Открыть проект

Открытые свойства

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