Abstract Class lispa\amos\core\controllers\CrudController
Class CrudController
Public Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
findModel() | Finds the modelObj model based on its primary key value. | lispa\amos\core\controllers\CrudController |
getDefaultCurrentView() | lispa\amos\core\controllers\CrudController | |
getRules() | lispa\amos\core\controllers\BaseController | |
setUserLanguage() | lispa\amos\core\controllers\AmosController |
Events
Event | Type | Description | Defined By |
---|---|---|---|
EVENT_AFTER_ACTION | yii\base\ActionEvent | An event raised right after executing a controller action. | yii\base\Controller |
EVENT_BEFORE_ACTION | yii\base\ActionEvent | An event raised right before executing a controller action. | yii\base\Controller |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
AFTER_FINDMODEL_EVENT | "afterFindModel" | lispa\amos\core\controllers\CrudController | |
BEFORE_FINDMODEL_EVENT | "beforeFindModel" | lispa\amos\core\controllers\CrudController |
Property Details
public mixed getDataProvider ( )
public void setDataProvider ( yii\data\ActiveDataProvider $dataProvider )
public void setDataProvider ( yii\data\ActiveDataProvider $dataProvider )
Configurations to export data. DON'T SET IN Yii::$app->request->queryParams!
Method Details
Finds the ModelClass model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
public string actionIndex ( $layout = NULL ) | ||
$layout | ||
return | string | The loaded model |
---|---|---|
throws | yii\web\NotFoundHttpException | if the model cannot be found |
Used by information request widget to send email about a model (from modal)
public boolean|string actionRequestInformation ( $id ) | ||
$id | integer |
|
public array behaviors ( ) |
public void can ( $strPermission ) | ||
$strPermission |
Finds the modelObj model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
protected string findModel ( $id ) | ||
$id | integer | |
return | string | The loaded model |
---|---|---|
throws | yii\web\NotFoundHttpException | if the model cannot be found |
public void getAvailableView ( $name ) | ||
$name |
public mixed getAvailableViews ( ) |
public string getCurrentView ( ) |
public mixed getDataProvider ( ) |
protected void getDefaultCurrentView ( $modelClass ) | ||
$modelClass |
public array getGridViewColumns ( ) |
public mixed getModelSearch ( ) |
public void getParametro ( ) |
public void getUrl ( ) |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
public void initAvailableViews ( ) |
public void initCurrentView ( ) |
public void setAvailableViews ( $availableViews ) | ||
$availableViews | mixed |
public void setCurrentView ( $currentView ) | ||
$currentView | string |
public void setDataProvider ( yii\data\ActiveDataProvider $dataProvider ) | ||
$dataProvider | mixed |
public void setGridViewColumns ( $gridViewColumns ) | ||
$gridViewColumns | array |
public void setModelSearch ( $modelSearch ) | ||
$modelSearch | mixed |
public void setParametro ( $parametro ) | ||
$parametro |
public void setUrl ( $url ) | ||
$url |