Class lispa\amos\discussioni\controllers\DiscussioniTopicController
Class DiscussioniTopicController DiscussioniTopicController implements the CRUD actions for DiscussioniTopic 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 | |
redirectOnCreate() | lispa\amos\discussioni\controllers\DiscussioniTopicController | |
redirectOnUpdate() | lispa\amos\discussioni\controllers\DiscussioniTopicController | |
setListViewsParams() | This method is useful to set all common params for all list views. | lispa\amos\discussioni\controllers\DiscussioniTopicController |
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 string actionAdminAllDiscussions ( ) |
public void actionAllDiscussions ( ) |
Creates a new DiscussioniTopic model.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreate ( ) |
public void actionCreatedBy ( ) |
Deletes an existing DiscussioniTopic model.
If deletion is successful, the browser will be redirected to the 'index' page.
public yii\web\Response actionDelete ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
public string|yii\web\Response actionIndex ( $layout = NULL ) | ||
$layout | string|null |
public void actionOwnInterestDiscussions ( ) |
public void actionPartecipa ( $id ) | ||
$id |
public yii\web\Response actionRejectDiscussion ( $id ) | ||
$id | integer | Discussion id. |
public string actionToValidateDiscussions ( ) |
Updates an existing DiscussioniTopic model.
public string|yii\web\Response actionUpdate ( $id, $backToEditStatus = false ) | ||
$id | integer | |
$backToEditStatus | boolean|false | Save the model with status Editing in progress before form rendering |
throws | yii\web\NotFoundHttpException |
---|
public yii\web\Response actionValidateDiscussion ( $id ) | ||
$id | integer | Discussion id. |
Displays a single DiscussioniTopic model.
public mixed actionView ( $id ) | ||
$id | integer |
public array behaviors ( ) |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
protected yii\web\Response redirectOnCreate ( $model ) | ||
$model |
protected yii\web\Response redirectOnUpdate ( $model, $previousStatus = null ) | ||
$model | ||
$previousStatus | null |
This method is useful to set all common params for all list views.
protected void setListViewsParams ( ) |
public void setNetworkDashboardBreadcrumb ( ) |