Class Socialveo\Frontend\controllers\CircleController

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

Class CircleController

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
circleDirectFollowAction() Socialveo\Frontend\controllers\CircleController
circleDirectUnfollowAction() Socialveo\Frontend\controllers\CircleController
circlesAction() Set/unset circles (connection) Socialveo\Frontend\controllers\CircleController
createAction() Create Socialveo\Frontend\controllers\CircleController
fire() Fire custom event Socialveo\Frontend\controllers\FrontendController
getCirclesAction() Socialveo\Frontend\controllers\CircleController
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
moveDownAction() Move down Socialveo\Frontend\controllers\CircleController
moveUpAction() Move up Socialveo\Frontend\controllers\CircleController
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
removeAction() Remove Socialveo\Frontend\controllers\CircleController
renameAction() Update Socialveo\Frontend\controllers\CircleController
renderCirclesAction() Render circles modal Socialveo\Frontend\controllers\CircleController
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

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
renderModal() Render modal box Socialveo\Frontend\controllers\CircleController
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

Property Details

$responseTypeJson protected property
protected boolean $responseTypeJson true

Method Details

circleDirectFollowAction() public method

public array circleDirectFollowAction ( $uuid )
$uuid string
circleDirectUnfollowAction() public method

public void circleDirectUnfollowAction ( $uuid )
$uuid string
circlesAction() public method

Set/unset circles (connection)

public array circlesAction ( $friendUuid, $firstCircle false, $render true, &$friend null )
$friendUuid string

Friend uuid

$firstCircle boolean

[optional] True for connect and put in the first circle, otherwise will create circles from circles get param

$render boolean

[optional] True for returns updated contents of call-to-action view

$friend Socialveo\Core\models\User|null

[optional] Returns reference to friend

createAction() public method

Create

public array createAction ( )
getCirclesAction() public method

public array getCirclesAction ( $uuid null )
$uuid string

[optional]

moveDownAction() public method

Move down

public array moveDownAction ( $uuid )
$uuid string
moveUpAction() public method

Move up

public array moveUpAction ( $uuid )
$uuid string
removeAction() public method

Remove

public array removeAction ( $uuid )
$uuid string
renameAction() public method

Update

public array renameAction ( $uuid )
$uuid string
renderCirclesAction() public method

Render circles modal

public array renderCirclesAction ( $uuid )
$uuid string

User uuid

renderModal() protected method

Render modal box

protected array renderModal ( $user, $friend, $connection null, $checked null )
$user Socialveo\Core\models\User
$friend Socialveo\Core\models\User|string

User object or uuid

$connection Socialveo\Core\models\Connection

[optional]

$checked array

[optional]

throws Exception