PHP 클래스 yii2tech\admin\actions\Index

부터: 1.0
저자: Paul Klimov ([email protected])
상속: extends Action
파일 보기 프로젝트 열기: yii2tech/admin

공개 프로퍼티들

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