Class lispa\amos\projectmanagement\controllers\base\ProjectsTasksController
Class ProjectsTasksController ProjectsTasksController implements the CRUD actions for ProjectsTasks 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
TODO implementare controllo sui permessi di creazione per l'attività scelta in get Creates a new ProjectsTasks model.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreate ( $activity_id, $task_id = null ) | ||
$activity_id | ||
$task_id |
Creates a new ProjectsTasks model by ajax request.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreateAjax ( $fid, $dataField ) | ||
$fid | ||
$dataField |
Deletes an existing ProjectsTasks model.
If deletion is successful, the browser will be redirected to the 'index' page.
public mixed actionDelete ( $id ) | ||
$id | integer |
Updates an existing ProjectsTasks model.
If update is successful, the browser will be redirected to the 'view' page.
public mixed actionUpdate ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
Displays a single ProjectsTasks model.
public mixed actionView ( $id ) | ||
$id | integer |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
public boolean readOnlyNonTaskCostsTabs ( ) |
public void updateRelations ( $model, $task_id = null ) | ||
$model | lispa\amos\projectmanagement\models\ProjectsTasks | |
$task_id | integer |