PHP 클래스 yii\rest\IndexAction

For more details and usage information on IndexAction, see the guide article on rest controllers.
부터: 2.0
저자: Qiang Xue ([email protected])
상속: extends Action
파일 보기 프로젝트 열기: yiisoft/yii2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$prepareDataProvider a PHP callable that will be called to prepare a data provider that should return a collection of the models. If not set, IndexAction::prepareDataProvider will be used instead. The signature of the callable should be: php function ($action) { $action is the action object currently running } The callable should return an instance of [[ActiveDataProvider]].

공개 메소드들

메소드 설명
run ( ) : ActiveDataProvider

보호된 메소드들

메소드 설명
prepareDataProvider ( ) : ActiveDataProvider Prepares the data provider that should return the requested collection of the models.

메소드 상세

prepareDataProvider() 보호된 메소드

Prepares the data provider that should return the requested collection of the models.
protected prepareDataProvider ( ) : ActiveDataProvider
리턴 yii\data\ActiveDataProvider

run() 공개 메소드

public run ( ) : ActiveDataProvider
리턴 yii\data\ActiveDataProvider

프로퍼티 상세

$prepareDataProvider 공개적으로 프로퍼티

a PHP callable that will be called to prepare a data provider that should return a collection of the models. If not set, IndexAction::prepareDataProvider will be used instead. The signature of the callable should be: php function ($action) { $action is the action object currently running } The callable should return an instance of [[ActiveDataProvider]].
public $prepareDataProvider