PHP Class yii\rest\UpdateAction

Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends Action
Afficher le fichier Open project: yiisoft/yii2 Class Usage Examples

Méthodes publiques

Свойство Type Description
$scenario the scenario to be assigned to the model before it is validated and updated.

Méthodes publiques

Méthode Description
run ( string $id ) : yii\db\ActiveRecordInterface Updates an existing model.

Method Details

run() public méthode

Updates an existing model.
public run ( string $id ) : yii\db\ActiveRecordInterface
$id string the primary key of the model.
Résultat yii\db\ActiveRecordInterface the model being updated

Property Details

$scenario public_oe property

the scenario to be assigned to the model before it is validated and updated.
public $scenario