PHP Класс yii2tech\admin\actions\Index

С версии: 1.0
Автор: Paul Klimov ([email protected])
Наследование: extends Action
Показать файл Открыть проект

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

Свойство Тип Описание
$newSearchModel a PHP callable that will be called to create the new search model. If not set, Index::newSearchModel 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 the new model instance.
$prepareDataProvider a PHP callable that will be called to prepare a data provider that should return a collection of the models. If not set, Index::prepareDataProvider will be used instead. The signature of the callable should be: php function ($searchModel, $action) { $searchModel the search model instance $action is the action object currently running } The callable should return an instance of DataProviderInterface.
$view name of the view, which should be rendered

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

Метод Описание
newSearchModel ( ) : Model Creates new search model instance.
run ( ) : mixed Displays models list.

Защищенные методы

Метод Описание
prepareDataProvider ( Model $searchModel ) : yii\data\DataProviderInterface Prepares the data provider that should return the requested collection of the models.

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

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

Creates new search model instance.
public newSearchModel ( ) : Model
Результат yii\base\Model new model instance.

prepareDataProvider() защищенный Метод

Prepares the data provider that should return the requested collection of the models.
protected prepareDataProvider ( Model $searchModel ) : yii\data\DataProviderInterface
$searchModel yii\base\Model search model instance.
Результат yii\data\DataProviderInterface data provider instance.

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

Displays models list.
public run ( ) : mixed
Результат mixed response.

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

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

a PHP callable that will be called to create the new search model. If not set, Index::newSearchModel 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 the new model instance.
public $newSearchModel

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

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

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

name of the view, which should be rendered
public $view