Class Socialveo\Frontend\controllers\ChatController

InheritanceSocialveo\Frontend\controllers\ChatController » Socialveo\Frontend\controllers\FrontendController » Phalcon\Mvc\Controller
Uses TraitsSocialveo\Core\Translatable

Class ChatController

Public Methods

Hide inherited methods

MethodDescriptionDefined By
_t() Gets translations Socialveo\Core\Translatable
addUsersAction() Add users to chat Socialveo\Frontend\controllers\ChatController
afterExecuteRoute() Socialveo\Frontend\controllers\FrontendController
beforeExecuteRoute() Before execute route Socialveo\Frontend\controllers\FrontendController
createDialogAction() Create dialog Socialveo\Frontend\controllers\ChatController
createMessageAction() Create message Socialveo\Frontend\controllers\ChatController
fire() Fire custom event Socialveo\Frontend\controllers\FrontendController
getEmbed() Embed getter method, if embed property is not set, fetches embed from request URL Socialveo\Frontend\controllers\FrontendController
getIsRequestPjax() Checks whether is requested via jquery.pjax Socialveo\Frontend\controllers\FrontendController
getLanguage() Gets language code Socialveo\Frontend\controllers\FrontendController
getParams() Gets $_REQUEST superglobal Socialveo\Frontend\controllers\FrontendController
getRequired() Get required param / params Socialveo\Frontend\controllers\FrontendController
getRequiredQuery() Get required param / params from $_GET Socialveo\Frontend\controllers\FrontendController
indexAction() Show all conversations Socialveo\Frontend\controllers\ChatController
initialize() Initialize controller Socialveo\Frontend\controllers\FrontendController
leaveChatAction() Leave chat Socialveo\Frontend\controllers\ChatController
notFound() Not found action Socialveo\Frontend\controllers\FrontendController
partialRender() Renders partial view without layout Socialveo\Frontend\controllers\FrontendController
pick() Pick view Socialveo\Frontend\controllers\FrontendController
posts() Find posts and attach to page Socialveo\Frontend\controllers\FrontendController
renderDialogAction() Render dialog via ajax Socialveo\Frontend\controllers\ChatController
renderDialogPanelAction() Render dialog panel via ajax Socialveo\Frontend\controllers\ChatController
renderMessageAction() Render single message via ajax Socialveo\Frontend\controllers\ChatController
searchDialogAction() Search dialogs sidebar Socialveo\Frontend\controllers\ChatController
searchDialogMainAction() Search dialogs sidebar Socialveo\Frontend\controllers\ChatController
setDebugHeaders() Sets headers for debug XHR Socialveo\Frontend\controllers\FrontendController
setHttpCode() Set response Http code Socialveo\Frontend\controllers\FrontendController
t() Gets translations Socialveo\Core\Translatable
uploadFileAction() Upload and delete files via ajax Socialveo\Frontend\controllers\ChatController
viewDialogAction() View dialog Socialveo\Frontend\controllers\ChatController
viewUsernameDialogAction() View private dialog Socialveo\Frontend\controllers\ChatController

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
checkAccess() Checks during the init of controller whether user is a guest. Socialveo\Frontend\controllers\FrontendController
checkIsAjax() Checks whether request is AJAX, redirect if false Usage in action: if (!$this->checkIsAjax()) { return false; } Socialveo\Frontend\controllers\FrontendController
getAllowedExtensions() Socialveo\Frontend\controllers\ChatController
getSocketData() Returns socket events Socialveo\Frontend\controllers\FrontendController
getTranslation() Gets translations Socialveo\Frontend\controllers\FrontendController
initAssets() Initialize assets Socialveo\Frontend\controllers\FrontendController
initViewVars() Sets view vars. Socialveo\Frontend\controllers\FrontendController
privateDialogFor() Socialveo\Frontend\controllers\ChatController
redirect() Redirect to url Socialveo\Frontend\controllers\FrontendController
reload() Reload the page Socialveo\Frontend\controllers\FrontendController
renderDefault() Render default page Socialveo\Frontend\controllers\FrontendController
respondWithArray() Returns an error response with an array Socialveo\Frontend\controllers\FrontendController
respondWithItem() Returns a response with a single item Socialveo\Frontend\controllers\FrontendController
respondWithStatus() Returns a response with status and message Socialveo\Frontend\controllers\FrontendController
responseError() Respond with error Socialveo\Frontend\controllers\FrontendController
responseJson() Response json Socialveo\Frontend\controllers\FrontendController
responseSuccess() Respond with success Socialveo\Frontend\controllers\FrontendController

Method Details

addUsersAction() public method

Add users to chat

public array|Phalcon\Http\Response|Phalcon\Http\ResponseInterface addUsersAction ( $uuid )
$uuid string
createDialogAction() public method

Create dialog

public Phalcon\Http\Response createDialogAction ( )
createMessageAction() public method

Create message

public Phalcon\Http\Response createMessageAction ( $uuid )
$uuid string

Dialog uuid

throws Exception
getAllowedExtensions() protected method

protected boolean|string getAllowedExtensions ( )
indexAction() public method

Show all conversations

public void indexAction ( )
throws Socialveo\Core\exceptions\HttpException
leaveChatAction() public method

Leave chat

public boolean|array leaveChatAction ( $uuid )
$uuid string
throws Socialveo\Core\exceptions\HttpException
privateDialogFor() protected method

protected Phalcon\Http\Response|Phalcon\Http\ResponseInterface privateDialogFor ( $interlocutor, $touch false )
$interlocutor Socialveo\Core\models\User
$touch boolean

[optional]

throws Exception
renderDialogAction() public method

Render dialog via ajax

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface renderDialogAction ( $uuid )
$uuid string
renderDialogPanelAction() public method

Render dialog panel via ajax

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface renderDialogPanelAction ( $uuid )
$uuid string
renderMessageAction() public method

Render single message via ajax

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface renderMessageAction ( $uuid )
$uuid string
searchDialogAction() public method

Search dialogs sidebar

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface searchDialogAction ( )
searchDialogMainAction() public method

Search dialogs sidebar

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface searchDialogMainAction ( )
uploadFileAction() public method

Upload and delete files via ajax

public Phalcon\Http\Response uploadFileAction ( $dialog_uuid, $media_uuid null )
$dialog_uuid string

Dialog UUID

$media_uuid string

[optional] Media UUID for delete

viewDialogAction() public method

View dialog

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface viewDialogAction ( $uuid )
$uuid string
throws Socialveo\Core\exceptions\HttpException
viewUsernameDialogAction() public method

View private dialog

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface viewUsernameDialogAction ( $username )
$username
throws Socialveo\Core\exceptions\HttpException