Class lispa\amos\partnershipprofiles\controllers\base\ExpressionsOfInterestController
Class ExpressionsOfInterestController ExpressionsOfInterestController implements the CRUD actions for ExpressionsOfInterest 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 | |
listenEvents() | Listen events. To call only when the model of the controller is instanced. | lispa\amos\partnershipprofiles\controllers\base\ExpressionsOfInterestController |
setActionFromUrl() | This method save the actual action id in a class variable using the pathInfo. | lispa\amos\partnershipprofiles\controllers\base\ExpressionsOfInterestController |
setCustomModule() | This method checks if must be set the custom module. | lispa\amos\partnershipprofiles\controllers\base\ExpressionsOfInterestController |
setListViewsParams() | This method is useful to set all common params for all list views. | lispa\amos\partnershipprofiles\controllers\base\ExpressionsOfInterestController |
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
Creates a new ExpressionsOfInterest model.
If creation is successful, the browser will be redirected to the 'view' page.
public string|yii\web\Response actionCreate ( $partnership_profile_id = null ) | ||
$partnership_profile_id | integer|null | |
throws | yii\web\ForbiddenHttpException |
---|
Deletes an existing ExpressionsOfInterest model.
If deletion is successful, the browser will be redirected to the previous list page.
public yii\web\Response actionDelete ( $id ) | ||
$id | integer | |
throws | Exception | |
---|---|---|
throws | Throwable | |
throws | yii\db\StaleObjectException | |
throws | yii\web\NotFoundHttpException |
Lists all ExpressionsOfInterest models.
public string actionIndex ( $layout = null ) | ||
$layout | string|null | |
throws | yii\web\NotFoundHttpException |
---|
Updates an existing ExpressionsOfInterest 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 ExpressionsOfInterest model.
public mixed actionView ( $id ) | ||
$id | integer | |
throws | yii\web\ForbiddenHttpException | |
---|---|---|
throws | \HttpInvalidParamException | |
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 ( ) |
This method returns the close url for close button in form.
public string getFormCloseUrl ( ) |
public array getReferenceCommunityOrOrganizationList ( ) |
This method returns the close url for close button in action view.
public string getViewCloseUrl ( ) |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
Listen events. To call only when the model of the controller is instanced.
protected void listenEvents ( ) |
This method save the actual action id in a class variable using the pathInfo.
protected void setActionFromUrl ( ) |
This method checks if must be set the custom module.
protected void setCustomModule ( ) |
This method is useful to set all common params for all list views.
protected void setListViewsParams ( $setCurrentDashboard = true, $child_of = null ) | ||
$setCurrentDashboard | boolean | |
$child_of |
Used for set page title and breadcrumbs.
public void setTitleAndBreadcrumbs ( $pageTitle ) | ||
$pageTitle | string |
public boolean setUpLayout ( $layout = null ) | ||
$layout | string|null |
public boolean viewCommunityOrOrganizationList ( ) |
public string viewReadAllBtn ( $model ) | ||
$model | lispa\amos\partnershipprofiles\models\ExpressionsOfInterest |