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
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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