PHP Class yii2tech\admin\actions\Restore

See also: https://github.com/yii2tech/ar-softdelete
Since: 1.0
Author: Paul Klimov ([email protected])
Inheritance: extends Action
Show file Open project: yii2tech/admin

Public Properties

Property Type Description
$flash flash message to be set on success.

Public Methods

Method Description
run ( mixed $id ) : mixed Deletes a model.

Method Details

run() public method

Deletes a model.
public run ( mixed $id ) : mixed
$id mixed id of the model to be deleted.
return mixed response.

Property Details

$flash public property

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