Class lispa\amos\projectmanagement\controllers\base\ProjectsController
Class ProjectsController ProjectsController implements the CRUD actions for Projects 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
Displays a single Projects model.
public mixed actionByProject ( $id = null, $pid = null, $currentViewActivities = 'grid', $currentViewCosts = 'grid', $currentViewPeriods = 'grid', $modifyRequestCurrentView = 'grid', $startProject = 0 ) | ||
$id | integer | |
$pid | ||
$currentViewActivities | ||
$currentViewCosts | ||
$currentViewPeriods | ||
$modifyRequestCurrentView | ||
$startProject |
Creates a new Projects model.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreate ( ) |
Creates a new Projects 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 Projects model.
If deletion is successful, the browser will be redirected to the 'index' page.
public mixed actionDelete ( $id ) | ||
$id | integer |
Lists all Projects models.
public mixed actionIndex ( $layout = null ) | ||
$layout |
Updates an existing Projects 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 Projects model.
public mixed actionView ( $id ) | ||
$id | integer |
public void getActivityAvailableViews ( ) |
public void getCostsAvailableViews ( ) |
public void getModifyRequestAvailableViews ( ) |
public void getPeriodsAvailableViews ( ) |
This method returns all the projects measures ready to be used in a select widget.
public array getProjectsMeasuresForSelect ( ) |
This method returns all the workflow statuses for the Projects model ready to be used in a select widget.
public array getProjectsWorkflowStatusesForSelect ( ) |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|