PHP Class yii2tech\admin\actions\Callback

Since: 1.0
Author: Paul Klimov ([email protected])
Inheritance: extends Action
Afficher le fichier Open project: yii2tech/admin

Méthodes publiques

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
run ( string $id ) : mixed Invokes configured method on the specified model.

Method Details

run() public méthode

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

Property Details

$callback public_oe property

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 public_oe property

flash message to be set on success.
See also: Action::setFlash() for details on how setup flash.
public $flash