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
파일 보기 프로젝트 열기: yiisoft/yii2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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