Class lispa\amos\partnershipprofiles\controllers\base\PartnershipProfilesController
Class PartnershipProfilesController PartnershipProfilesController implements the CRUD actions for PartnershipProfiles model.
Public Properties
Public Methods
Protected Methods
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 PartnershipProfiles model.
If creation is successful, the browser will be redirected to the 'view' page.
public string|yii\web\Response actionCreate ( ) |
Deletes an existing PartnershipProfiles 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 | yii\db\StaleObjectException | |
throws | yii\web\NotFoundHttpException |
Lists all PartnershipProfiles models.
public string actionIndex ( $layout = null ) | ||
$layout | string|null | |
throws | yii\web\NotFoundHttpException |
---|
Updates an existing PartnershipProfiles model.
If update is successful, the browser will be redirected to the 'view' page.
public string|yii\web\Response actionUpdate ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
Displays a single PartnershipProfiles model.
public string|yii\web\Response actionView ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException | |
---|---|---|
throws | yii\web\ForbiddenHttpException |
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 find all logged user own interests partnership profiles.
The method returns an array of PartnershipProfiles objects or an array of ids.
public lispa\amos\partnershipprofiles\models\PartnershipProfiles[] getOwnInterestPartnershipProfiles ( $onlyIds = false ) | ||
$onlyIds | boolean |
This method returns the close url for close button in action view.
public string getViewCloseUrl ( ) |
Method useful to hide the create new button.
protected void hideCreateNewBtn ( ) |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
Save all values selected by user in a multi select field.
protected boolean saveMmsFields ( $attrMmPost, $modelClassName, $thisModelIdField, $otherIdField ) | ||
$attrMmPost | array | |
$modelClassName | string | |
$thisModelIdField | string | |
$otherIdField | string |
Save all partnership profile countries selected by user.
protected boolean savePartnershipProfileCountries ( $attrPost ) | ||
$attrPost | array |
Save all partnership profile types selected by user.
protected boolean savePartnershipProfileTypes ( $attrPost ) | ||
$attrPost | array |
Set a view param used in \lispa\amos\core\forms\CreateNewButtonWidget
protected void setCreateNewBtnLabel ( $hideBtn = false ) | ||
$hideBtn | boolean |
Set the partnership facilitator with the user profile facilitator.
protected boolean setDefaultFacilitator ( ) |
This method is useful to set all common params for all list views.
protected void setListViewsParams ( $setCurrentDashboard = true, $hideCreateNewBtn = false, $child_of = null ) | ||
$setCurrentDashboard | boolean | |
$hideCreateNewBtn | boolean | |
$child_of |
Set the begin create new button session key link and datetime.
protected void setSessionBeginCreateLink ( ) |
Used for set page title and breadcrumbs.
public void setTitleAndBreadcrumbs ( $pageTitle ) | ||
$pageTitle | string |
public boolean setUpLayout ( $layout = null ) | ||
$layout | string|null |