Class lispa\amos\documenti\controllers\DocumentiController
Class DocumentiController
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\documenti\controllers\DocumentiController | |
redirectOnUpdate() | lispa\amos\documenti\controllers\DocumentiController | |
setListViewsParams() | This method is useful to set all common params for all list views. | lispa\amos\documenti\controllers\DocumentiController |
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
Get all the documents without any visibility/status filters
public string actionAdminAllDocuments ( $currentView = null, $parentId = null ) | ||
$currentView | null | |
$parentId | integer|null |
|
Action for search all documenti.
public string actionAllDocuments ( $currentView = null, $parentId = null ) | ||
$currentView | ||
$parentId | integer|null |
|
Creates a new Documenti model.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreate ( ) |
Deletes an existing Documenti model.
If deletion is successful, the browser will be redirected to the 'index' page.
public yii\web\Response actionDelete ( $id ) | ||
$id | integer | |
throws | Exception | |
---|---|---|
throws | yii\db\StaleObjectException | |
throws | yii\web\NotFoundHttpException |
public yii\web\Response actionDeleteNewDocumentVersion ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
Lists all Documenti models.
public mixed actionIndex ( $layout = null ) | ||
$layout |
Render the sub-table of version, it's called with ajax
public string actionListOnly ( ) | ||
throws | Exception |
---|
public yii\web\Response actionNewDocumentVersion ( $id ) | ||
$id | integer | |
throws | \raoul2000\workflow\base\WorkflowException | |
---|---|---|
throws | yii\web\NotFoundHttpException |
Action to search only for own documents
public string actionOwnDocuments ( $parentId = null ) | ||
$parentId | integer|null |
|
Action to search only for own interest documents
public string actionOwnInterestDocuments ( $currentView = null, $parentId = null ) | ||
$currentView | ||
$parentId | integer|null |
|
public yii\web\Response actionRejectDocument ( $id ) | ||
$id | integer | Document id. |
Action to search to validate documents.
public string actionToValidateDocuments ( $parentId = null ) | ||
$parentId | integer|null |
|
Updates an existing Documenti model.
public string 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 actionValidateDocument ( $id ) | ||
$id | integer | Document id. |
Displays a single Documenti 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 ( ) |
If a given document model is a folder or not
public boolean documentIsFolder ( $model ) | ||
$model | lispa\amos\documenti\models\Documenti |
public string getFormCloseLabel ( $model ) | ||
$model | lispa\amos\documenti\models\Documenti |
public mixed|yii\web\Response getFormCloseUrl ( $model ) | ||
$model | lispa\amos\documenti\models\Documenti |
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 |
public void sendNotificationEmail ( ) |
This method is useful to set all common params for all list views.
protected void setListViewsParams ( ) |
public void setNetworkDashboardBreadcrumb ( ) |