PHP Класс yii\rest\CreateAction

For more details and usage information on CreateAction, see the guide article on rest controllers.
С версии: 2.0
Автор: Qiang Xue ([email protected])
Наследование: extends Action
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$scenario the scenario to be assigned to the new model before it is validated and saved.
$viewAction the name of the view action. This property is need to create the URL when the model is successfully created.

Открытые методы

Метод Описание
run ( ) : yii\db\ActiveRecordInterface Creates a new model.

Описание методов

run() публичный Метод

Creates a new model.
public run ( ) : yii\db\ActiveRecordInterface
Результат yii\db\ActiveRecordInterface the model newly created

Описание свойств

$scenario публичное свойство

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

$viewAction публичное свойство

the name of the view action. This property is need to create the URL when the model is successfully created.
public $viewAction