PHP Class yii\rest\IndexAction

For more details and usage information on IndexAction, see the guide article on rest controllers.
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
$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]].

Méthodes publiques

Méthode Description
run ( ) : ActiveDataProvider

Méthodes protégées

Méthode Description
prepareDataProvider ( ) : ActiveDataProvider Prepares the data provider that should return the requested collection of the models.

Method Details

prepareDataProvider() protected méthode

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

run() public méthode

public run ( ) : ActiveDataProvider
Résultat yii\data\ActiveDataProvider

Property Details

$prepareDataProvider public_oe property

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