Class lispa\amos\invitations\controllers\base\InvitationController
Class InvitationController InvitationController implements the CRUD actions for Invitation 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 | |
sendInvitation() | lispa\amos\invitations\controllers\base\InvitationController | |
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 |
Method Details
Creates a new Invitation model.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreate ( ) |
Deletes an existing Invitation model.
If deletion is successful, the browser will be redirected to the 'index' page.
public mixed actionDelete ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
Lists all Invitation models.
public mixed actionIndex ( $layout = NULL ) | ||
$layout | string|null | |
throws | yii\web\NotFoundHttpException |
---|
Lists all Invitation models.
public mixed actionIndexAll ( $layout = NULL ) | ||
$layout | string|null |
public yii\web\Response actionReSend ( $id ) | ||
$id |
Updates an existing Invitation model.
If update is successful, the browser will be redirected to the 'view' page.
public mixed actionUpdate ( $id ) | ||
$id | integer | |
throws | yii\web\BadRequestHttpException |
---|
Displays a single Invitation model.
public mixed actionView ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
protected string|yii\web\Response sendInvitation ( $actionView = null, $invitation, $invitationUser ) | ||
$actionView | ||
$invitation | lispa\amos\invitations\models\Invitation | |
$invitationUser | lispa\amos\invitations\models\InvitationUser |