PHP Trait bubasuma\simplechat\controllers\ControllerTrait

Since: 2.0
Author: Buba Suma ([email protected])
Show file Open project: bubasuma/yii2-simplechat

Public Methods

Method Description
actionConversations ( )
actionCreateMessage ( $contactId )
actionDeleteConversation ( $contactId )
actionDeleteMessage ( $id )
actionMarkConversationAsRead ( $contactId )
actionMarkConversationAsUnread ( $contactId )
actionMessages ( $contactId )
afterAction ( $action, $result )
behaviors ( )
getConversationClass ( ) : string
getMessageClass ( ) : string
getUser ( ) : yii\web\IdentityInterface

Method Details

actionConversations() public method

public actionConversations ( )

actionCreateMessage() public method

public actionCreateMessage ( $contactId )

actionDeleteConversation() public method

public actionDeleteConversation ( $contactId )

actionDeleteMessage() public method

public actionDeleteMessage ( $id )

actionMarkConversationAsRead() public method

public actionMarkConversationAsRead ( $contactId )

actionMarkConversationAsUnread() public method

public actionMarkConversationAsUnread ( $contactId )

actionMessages() public method

public actionMessages ( $contactId )

afterAction() public method

public afterAction ( $action, $result )

behaviors() public method

public behaviors ( )

getConversationClass() public method

public getConversationClass ( ) : string
return string

getMessageClass() public method

public getMessageClass ( ) : string
return string

getUser() public method

public getUser ( ) : yii\web\IdentityInterface
return yii\web\IdentityInterface