Class lispa\amos\chat\controllers\DefaultController
Class DefaultController
Public Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
findModel() | Finds the News model based on its primary key value. | lispa\amos\chat\controllers\DefaultController |
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
public string actionAssistance ( ) | ||
throws | yii\web\ForbiddenHttpException | |
---|---|---|
throws | yii\web\NotFoundHttpException |
public void actionForwardMessage ( $idMessage, $idUserToForward ) | ||
$idMessage | ||
$idUserToForward |
public string actionIndex ( $contactId = null ) | ||
$contactId | null | |
throws | yii\web\ForbiddenHttpException | |
---|---|---|
throws | yii\web\NotFoundHttpException |
See also yii\base\Controller::actions() for more info.
public void actions ( ) |
public array behaviors ( ) |
Finds the News model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
protected lispa\amos\chat\models\Conversation findModel ( $id ) | ||
$id | integer | |
return | lispa\amos\chat\models\Conversation | The loaded model |
---|---|---|
throws | yii\web\NotFoundHttpException | if the model cannot be found |
public string getConversationClass ( ) |
public string getMessageClass ( ) |
public lispa\amos\chat\models\User getUser ( ) |
public string getUserAvatar ( $modelId, $modelType ) | ||
$modelId | integer | Model ID. |
$modelType | string | Type of the model. It can be USER or AVATAR. |
public string getUserContactClass ( ) |
public array getUsers ( array $except = [] ) | ||
$except | array |
Init all view types
See also yii\base\Object::init() for more info.
public void init ( ) |
public boolean setUpLayout ( $layout = null ) | ||
$layout | null |