Class Socialveo\Frontend\controllers\CommentsController

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

Class CommentsController

Public Methods

Hide inherited methods

MethodDescriptionDefined By
_t() Gets translations Socialveo\Core\Translatable
afterExecuteRoute() Socialveo\Frontend\controllers\FrontendController
beforeExecuteRoute() Before execute route Socialveo\Frontend\controllers\FrontendController
commentAction() Gets comment content Socialveo\Frontend\controllers\CommentsController
commentBodyAction() Returns comment body Socialveo\Frontend\controllers\CommentsController
commentPartialAction() Render comment without children comments Socialveo\Frontend\controllers\CommentsController
commentRenderAction() Render comment Socialveo\Frontend\controllers\CommentsController
commentSourceAction() Gets comment source content Socialveo\Frontend\controllers\CommentsController
commentsArrayRenderAction() Render comments Socialveo\Frontend\controllers\CommentsController
createAction() Create a comment Socialveo\Frontend\controllers\CommentsController
deleteAction() Delete a comment Socialveo\Frontend\controllers\CommentsController
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
initialize() Initialize controller Socialveo\Frontend\controllers\FrontendController
loadMoreAction() Loads more comments Socialveo\Frontend\controllers\CommentsController
loadMoreChildAction() Loads more sub comments Socialveo\Frontend\controllers\CommentsController
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
reportAction() Report a spam Socialveo\Frontend\controllers\CommentsController
setDebugHeaders() Sets headers for debug XHR Socialveo\Frontend\controllers\FrontendController
setHttpCode() Set response Http code Socialveo\Frontend\controllers\FrontendController
subCommentAction() Gets sub comment content Socialveo\Frontend\controllers\CommentsController
t() Gets translations Socialveo\Core\Translatable
updateAction() Update comment Socialveo\Frontend\controllers\CommentsController
uploadFileAction() Upload and delete files via ajax Socialveo\Frontend\controllers\CommentsController

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
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
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

commentAction() public method

Gets comment content

public boolean|Phalcon\Http\Response|Phalcon\Http\ResponseInterface commentAction ( $uuid )
$uuid string
commentBodyAction() public method

Returns comment body

public array|boolean commentBodyAction ( $uuid )
$uuid string
commentPartialAction() public method

Render comment without children comments

public array|boolean commentPartialAction ( $uuid )
$uuid string
commentRenderAction() public method

Render comment

public array|boolean commentRenderAction ( $uuid )
$uuid string
commentSourceAction() public method

Gets comment source content

public boolean|Phalcon\Http\Response|Phalcon\Http\ResponseInterface commentSourceAction ( $uuid )
$uuid string
commentsArrayRenderAction() public method

Render comments

public array|boolean commentsArrayRenderAction ( )
createAction() public method

Create a comment

public Phalcon\Http\Response createAction ( )
throws Exception
deleteAction() public method

Delete a comment

public Phalcon\Http\Response deleteAction ( $uuid )
$uuid string
loadMoreAction() public method

Loads more comments

public boolean|Phalcon\Http\Response loadMoreAction ( $post_uuid, $id )
$post_uuid string

Post uuid

$id integer

Last shown comment

loadMoreChildAction() public method

Loads more sub comments

public boolean|Phalcon\Http\Response loadMoreChildAction ( $post_uuid, $id, $parent_id )
$post_uuid string

Post uuid

$id integer

Last shown comment

$parent_id integer

Parent comment id

reportAction() public method

Report a spam

public void reportAction ( )
subCommentAction() public method

Gets sub comment content

public boolean|Phalcon\Http\Response|Phalcon\Http\ResponseInterface subCommentAction ( $uuid )
$uuid string
updateAction() public method

Update comment

public boolean|Phalcon\Http\Response updateAction ( )
uploadFileAction() public method

Upload and delete files via ajax

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

Network UUID

$media_uuid string

[optional] Media UUID for delete