Class lispa\amos\sondaggi\controllers\SondaggiController
Class SondaggiController SondaggiController implements the CRUD actions for Sondaggi model.
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
Method Details
Creates a new Sondaggi model.
If creation is successful, the browser will be redirected to the 'index' page.
public string actionCreate ( $url = null ) | ||
$url | string|null |
Deletes an existing Sondaggi model.
If deletion is successful, the browser will be redirected to the 'index' page.
public yii\web\Response actionDelete ( $id ) | ||
$id | integer | |
throws | yii\db\StaleObjectException | |
---|---|---|
throws | yii\web\NotFoundHttpException |
Lists all Sondaggi models.
public string actionIndex ( $layout = null ) | ||
$layout | string|null | |
throws | yii\web\NotFoundHttpException |
---|
public string actionRisultati ( $id, $idPagina = -2 ) | ||
$id | integer | |
$idPagina | integer |
Updates an existing Sondaggi model.
If update is successful, the browser will be redirected to the 'view' page.
public string|yii\web\Response actionUpdate ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
Displays a single Sondaggi model.
public string|yii\web\Response actionView ( $id ) | ||
$id | integer |
public array behaviors ( ) |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|