Class lispa\amos\core\views\DataProviderView
Inheritance | lispa\amos\core\views\DataProviderView » yii\base\Widget » yii\base\Component » yii\base\Object |
---|---|
Implements | yii\base\Configurable, yii\base\ViewContextInterface |
Class DataProviderView decorator for every view in amos
Public Properties
Public Methods
Events
Event | Type | Description | Defined By |
---|---|---|---|
EVENT_AFTER_RUN | yii\base\WidgetEvent | An event raised right after executing a widget. (available since version 2.0.11) | yii\base\Widget |
EVENT_BEFORE_RUN | yii\base\WidgetEvent | An event raised right before executing a widget. (available since version 2.0.11) | yii\base\Widget |
EVENT_INIT | yii\base\Event | An event that is triggered when the widget is initialized via init(). (available since version 2.0.11) | yii\base\Widget |
Property Details
Configurations to export data. DON'T SET IN Yii::$app->request->queryParams!
Method Details
public mixed getCurrentView ( ) |
public mixed getDataProvider ( ) |
public mixed getGridView ( ) |
public mixed getIconView ( ) |
public mixed getListView ( ) |
public string getViewGridClass ( ) |
public string getViewIconClass ( ) |
public string getViewListClass ( ) |
Initializes the object.
This method is called at the end of the constructor. The default implementation will trigger an EVENT_INIT event.
public void init ( ) |
Executes the widget.
public string run ( ) | ||
return | string | The result of widget execution to be outputted. |
---|
public void setCurrentView ( $currentView ) | ||
$currentView | mixed |
public void setDataProvider ( $dataProvider ) | ||
$dataProvider | mixed |
public void setGridView ( $gridView ) | ||
$gridView | mixed |
public void setIconView ( $iconView ) | ||
$iconView | mixed |
public void setListView ( $listView ) | ||
$listView | mixed |
public void setViewGridClass ( $viewGridClass ) | ||
$viewGridClass | string |
public void setViewIconClass ( $viewIconClass ) | ||
$viewIconClass | string |
public void setViewListClass ( $viewListClass ) | ||
$viewListClass | string |