Class Socialveo\Frontend\controllers\NetworksController

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

Class NetworksController

Public Methods

Hide inherited methods

MethodDescriptionDefined By
_t() Gets translations Socialveo\Core\Translatable
addModeratorsAction() Add moderators Socialveo\Frontend\controllers\NetworksController
afterExecuteRoute() Socialveo\Frontend\controllers\FrontendController
beforeExecuteRoute() Before execute route Socialveo\Frontend\controllers\FrontendController
changeAvatarAction() Chang avatar Socialveo\Frontend\controllers\NetworksController
changeCoverAction() Change cover Socialveo\Frontend\controllers\NetworksController
createAction() Network create Socialveo\Frontend\controllers\NetworksController
deleteAction() Delete Socialveo\Frontend\controllers\NetworksController
deleteModeratorsAction() Delete moder Socialveo\Frontend\controllers\NetworksController
fire() Fire custom event Socialveo\Frontend\controllers\FrontendController
followersAction() Followers Socialveo\Frontend\controllers\NetworksController
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() Search networks Socialveo\Frontend\controllers\NetworksController
initialize() Initialize controller Socialveo\Frontend\controllers\FrontendController
inviteAction() Invite user Socialveo\Frontend\controllers\NetworksController
membersAction() Members Socialveo\Frontend\controllers\NetworksController
moderatorsAction() Moderators Socialveo\Frontend\controllers\NetworksController
networksTypeAction() Networks type action Socialveo\Frontend\controllers\NetworksController
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
searchSimpleUsersAction() Search users on the network who is not in the moderators Socialveo\Frontend\controllers\NetworksController
searchUsersAction() Search users on the network who is not in the moderators Socialveo\Frontend\controllers\NetworksController
searchUsersForInviteAction() Search users for invite Socialveo\Frontend\controllers\NetworksController
searchUsersForModeratorAction() Search users for add moderators. Socialveo\Frontend\controllers\NetworksController
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() Network update Socialveo\Frontend\controllers\NetworksController
updateFormAction() Return form update network Socialveo\Frontend\controllers\NetworksController
viewAction() View Socialveo\Frontend\controllers\NetworksController
viewEmbedAction() View embed inside iframe or modal Socialveo\Frontend\controllers\NetworksController

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
findModel() Socialveo\Frontend\controllers\NetworksController
findModelByUrl() Socialveo\Frontend\controllers\NetworksController
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
view() View network Socialveo\Frontend\controllers\NetworksController

Method Details

addModeratorsAction() public method

Add moderators

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

Chang avatar

public Phalcon\Http\Response changeAvatarAction ( $uuid )
$uuid string
changeCoverAction() public method

Change cover

public Phalcon\Http\Response changeCoverAction ( $uuid )
$uuid string
createAction() public method

Network create

public Phalcon\Http\Response createAction ( $formType 'network', $data = [] )
$formType string

[optional]

$data array

[optional]

deleteAction() public method

Delete

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

Delete moder

public Phalcon\Http\Response deleteModeratorsAction ( $uuid, $moderator_uuid )
$uuid string
$moderator_uuid string
throws Socialveo\Core\exceptions\HttpException
findModel() protected method

protected Socialveo\Core\models\Network findModel ( $uuid )
$uuid string
throws Socialveo\Core\exceptions\HttpException
findModelByUrl() protected method

protected boolean|Socialveo\Core\models\Network findModelByUrl ( $url, $forward false, $skipProfile false )
$url string
$forward boolean|array|callable

[optional] Forward dispatcher if it user

$skipProfile boolean
throws Socialveo\Core\exceptions\HttpException
throws Exception
followersAction() public method

Followers

public void followersAction ( $url )
$url string

Network url

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

Search networks

public void indexAction ( $network_types = [\Socialveo\Core\models\Network::NETWORK_TYPE_BUSINESS, \Socialveo\Core\models\Network::NETWORK_TYPE_GROUP, \Socialveo\Core\models\Network::NETWORK_TYPE_PAGE] )
$network_types string[]
inviteAction() public method

Invite user

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

Network uuid

throws Socialveo\Core\exceptions\HttpException
membersAction() public method

Members

public void membersAction ( $url )
$url string

Network url

throws Socialveo\Core\exceptions\HttpException
moderatorsAction() public method

Moderators

public void moderatorsAction ( $url )
$url string
throws Socialveo\Core\exceptions\HttpException
networksTypeAction() public method

Networks type action

public void networksTypeAction ( $types )
$types string
searchSimpleUsersAction() public method

Search users on the network who is not in the moderators

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

Search users on the network who is not in the moderators

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

Search users for invite

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

Network uuid

throws Exception
searchUsersForModeratorAction() public method

Search users for add moderators.

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

Network uuid

updateAction() public method

Network update

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

Return form update network

public void updateFormAction ( $uuid )
$uuid string
throws Socialveo\Core\exceptions\HttpException
view() protected method

View network

protected void view ( Socialveo\Core\models\Network $network, $view null, $postCriteria null )
$network Socialveo\Core\models\Network
$view string

[optional]

$postCriteria Phalcon\Mvc\Model\Criteria

[optional]

viewAction() public method

View

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface viewAction ( $url )
$url string
throws Socialveo\Core\exceptions\HttpException
viewEmbedAction() public method

View embed inside iframe or modal

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface viewEmbedAction ( $url )
$url string
throws Socialveo\Core\exceptions\HttpException