Class Socialveo\Frontend\controllers\PostsController

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

Class PostsController

Public Methods

Hide inherited methods

MethodDescriptionDefined By
_t() Gets translations Socialveo\Core\Translatable
afterExecuteRoute() Socialveo\Frontend\controllers\FrontendController
allowCommentsAction() Allow to write comments Socialveo\Frontend\controllers\PostsController
beforeExecuteRoute() Before execute route Socialveo\Frontend\controllers\FrontendController
createAction() Create a post Socialveo\Frontend\controllers\PostsController
deleteAction() Delete a post Socialveo\Frontend\controllers\PostsController
disallowCommentsAction() Disallow to write comments Socialveo\Frontend\controllers\PostsController
emotionAction() Add/update/remove emotion to post via ajax. Socialveo\Frontend\controllers\PostsController
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
hashtagAction() Search posts by hashtags Socialveo\Frontend\controllers\PostsController
initialize() Initialize controller Socialveo\Frontend\controllers\FrontendController
loadEmotionsAction() Load emotions list via ajax Socialveo\Frontend\controllers\PostsController
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
postBodyAction() Returns post body Socialveo\Frontend\controllers\PostsController
postEmotionAction() Render post emotions Socialveo\Frontend\controllers\PostsController
postRenderAction() Render post Socialveo\Frontend\controllers\PostsController
postShareCreateAction() Create share of post Socialveo\Frontend\controllers\PostsController
postShareRenderAction() Render post for share Socialveo\Frontend\controllers\PostsController
postSourceAction() Gets post source content Socialveo\Frontend\controllers\PostsController
posts() Find posts and attach to page Socialveo\Frontend\controllers\FrontendController
reportAction() Report a spam Socialveo\Frontend\controllers\PostsController
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
updateAction() Update a post Socialveo\Frontend\controllers\PostsController
uploadFileAction() Upload and delete files via ajax Socialveo\Frontend\controllers\PostsController
viewPostAction() View single post Socialveo\Frontend\controllers\PostsController

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

allowCommentsAction() public method

Allow to write comments

public Phalcon\Http\Response allowCommentsAction ( $uuid )
$uuid string
throws Socialveo\Core\exceptions\HttpException
createAction() public method

Create a post

public Phalcon\Http\Response createAction ( $uuid )
$uuid integer

Network UUID

throws Exception
deleteAction() public method

Delete a post

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

Disallow to write comments

public Phalcon\Http\Response disallowCommentsAction ( $uuid )
$uuid string
throws Socialveo\Core\exceptions\HttpException
emotionAction() public method

Add/update/remove emotion to post via ajax.

public Phalcon\Http\Response emotionAction ( $uuid )
$uuid string
hashtagAction() public method

Search posts by hashtags

public void hashtagAction ( $hashtag )
$hashtag string
loadEmotionsAction() public method

Load emotions list via ajax

public Phalcon\Http\Response loadEmotionsAction ( $uuid, $page null )
$uuid string
$page integer
postBodyAction() public method

Returns post body

public array|boolean postBodyAction ( $uuid )
$uuid string
postEmotionAction() public method

Render post emotions

public array|boolean postEmotionAction ( $uuid )
$uuid string
postRenderAction() public method

Render post

public array|boolean postRenderAction ( $uuid )
$uuid string
postShareCreateAction() public method

Create share of post

public boolean|Phalcon\Http\Response|Phalcon\Http\ResponseInterface postShareCreateAction ( )
postShareRenderAction() public method

Render post for share

public boolean|Phalcon\Http\Response|Phalcon\Http\ResponseInterface postShareRenderAction ( )
postSourceAction() public method

Gets post source content

public boolean|Phalcon\Http\Response|Phalcon\Http\ResponseInterface postSourceAction ( $uuid )
$uuid string
reportAction() public method

Report a spam

public Phalcon\Http\Response reportAction ( )
updateAction() public method

Update a post

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

viewPostAction() public method

View single post

public Phalcon\Http\Response viewPostAction ( $uuid )
$uuid string
throws Socialveo\Core\exceptions\HttpException
throws Exception