Class lispa\amos\sondaggi\controllers\PubblicazioneController
Class PubblicazioneController PubblicazioneController 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
public void __construct ( $id, $module, $config = [] ) | ||
$id | string | The ID of this controller. |
$module | yii\base\Module | The module that this controller belongs to. |
$config | array | Name-value pairs that will be used to initialize the object properties. |
Action che permette di compilare il sondaggio
public string actionCompila ( $id, $idPagina = null, $utente = null, $idSessione = null, $accesso = null, $url = null ) | ||
$id | integer | Id del sondaggio da compilare |
$idPagina | integer|null | |
$utente | integer|null | User ID |
$idSessione | null | |
$accesso | null | |
$url | null |
public yii\web\Response actionCreate ( ) |
Lists all PeiClassiUtenti models.
public string actionIndex ( $layout = null ) | ||
$layout | string|null | |
throws | yii\web\NotFoundHttpException |
---|
Send notification e-mail to user by role
public yii\web\Response actionNotifica ( $idSondaggio, $url = null ) | ||
$idSondaggio | integer | |
$url | string|null |
Genera i models e le view del sondaggio che si sta pubblicando
public yii\web\Response actionPubblica ( $idSondaggio, $url = null ) | ||
$idSondaggio | integer | L'id del sondaggi da pubblicare |
$url | string|null |
Lists all PeiClassiUtenti models.
public string actionPubblicazione ( ) |
public string actionSondaggiPubblici ( $id = 0 ) | ||
$id | integer |
Action che permette di compilare il sondaggio pubblico
public string|yii\web\Response actionSondaggioPubblico ( $id, $idPagina = null, $idSessione = null, $accesso = null, $url = null, $attivita = null, $inizio = FALSE, $libero = FALSE ) | ||
$id | integer | Id del sondaggio da compilare |
$idPagina | null | |
$idSessione | null | |
$accesso | null | |
$url | null | |
$attivita | null | |
$inizio | boolean | |
$libero | boolean |
Displays a single PeiClassiUtenti model.
public string|yii\web\Response actionView ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
Declares external actions for the controller.
This method is meant to be overwritten to declare external actions for the controller. It should return an array, with array keys being action IDs, and array values the corresponding action class names or action configuration arrays. For example,
return [
'action1' => 'app\components\Action1',
'action2' => [
'class' => 'app\components\Action2',
'property1' => 'value1',
'property2' => 'value2',
],
];
Yii::createObject() will be used later to create the requested action using the configuration provided here.
public void actions ( ) |
public array behaviors ( ) |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|