Class humhub\modules\space\controllers\MembershipController

Inheritancehumhub\modules\space\controllers\MembershipController » humhub\modules\content\components\ContentContainerController » humhub\components\Controller » yii\web\Controller
Available since version0.5

SpaceController is the main controller for spaces.

It show the space itself and handles all related tasks like following or memberships.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$access string Defines the ControllerAccess class for this controller responsible for managing access rules humhub\components\Controller

Public Methods

Hide inherited methods

MethodDescriptionDefined By
actionInvite() Invite New Members to this workspace humhub\modules\space\controllers\MembershipController
actionInviteAccept() When a user clicks on the Accept Invite Link, this action is called. humhub\modules\space\controllers\MembershipController
actionMembersList() Returns an user list which are space members humhub\modules\space\controllers\MembershipController
actionReceiveNotifications() humhub\modules\space\controllers\MembershipController
actionRequestMembership() Requests Membership for this Space humhub\modules\space\controllers\MembershipController
actionRequestMembershipForm() Requests Membership Form for this Space (If a message is required.) humhub\modules\space\controllers\MembershipController
actionRevokeMembership() Revokes Membership for this workspace humhub\modules\space\controllers\MembershipController
actionRevokeNotifications() humhub\modules\space\controllers\MembershipController
actionSearch() Provides a searchable user list of all workspace members in json. humhub\modules\space\controllers\MembershipController
actionSearchInvite() Provides a searchable user list of all workspace members in json. humhub\modules\space\controllers\MembershipController
actionSwitchDashboardDisplay() Toggle space content display at dashboard humhub\modules\space\controllers\MembershipController
appendPageTitle() Append a page title. humhub\components\Controller
beforeAction() humhub\modules\content\components\ContentContainerController
behaviors() humhub\components\Controller
forcePostRequest() Throws HttpException in case the request is not an post request, otherwise returns true. humhub\components\Controller
getAccess() humhub\modules\content\components\ContentContainerController
getAccessRules() humhub\modules\space\controllers\MembershipController
htmlRedirect() Create Redirect for AJAX Requests which output goes into HTML content. humhub\components\Controller
init() humhub\modules\content\components\ContentContainerController
prependPageTitle() Prepend a page title. humhub\components\Controller
redirect() humhub\components\Controller
renderAjaxContent() humhub\components\Controller
renderContent() Renders a static string by applying the layouts (sublayout + layout. humhub\components\Controller
renderModalClose() Closes a modal humhub\components\Controller
setActionTitles() Set a map that indicates what page title should be shown for the currently active action. humhub\components\Controller
setJsViewStatus() Sets some ui state as current controller/module and active topmenu. humhub\components\Controller
setPageTitle() Set the page title. humhub\components\Controller

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
checkModuleIsEnabled() Checks if the requested module is available in this contentContainer. humhub\modules\content\components\ContentContainerController
forbidden() humhub\components\Controller

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_INIT \yii\base\Event An event raised on init a controller. humhub\components\Controller

Method Details

actionInvite() public method

Invite New Members to this workspace

public void actionInvite ( )
actionInviteAccept() public method

When a user clicks on the Accept Invite Link, this action is called.

After this the user should be member of this workspace.

public void actionInviteAccept ( )
actionMembersList() public method

Returns an user list which are space members

public void actionMembersList ( )
actionReceiveNotifications() public method

public void actionReceiveNotifications ( )
actionRequestMembership() public method

Requests Membership for this Space

public void actionRequestMembership ( )
actionRequestMembershipForm() public method

Requests Membership Form for this Space (If a message is required.)

public void actionRequestMembershipForm ( )
actionRevokeMembership() public method

Revokes Membership for this workspace

public void actionRevokeMembership ( )
throws \yii\web\HttpException
actionRevokeNotifications() public method

public void actionRevokeNotifications ( )
actionSearch() public method

Provides a searchable user list of all workspace members in json.

public void actionSearch ( )
actionSearchInvite() public method

Provides a searchable user list of all workspace members in json.

public void actionSearchInvite ( )
actionSwitchDashboardDisplay() public method

Toggle space content display at dashboard

public void actionSwitchDashboardDisplay ( $show 0 )
$show
throws \yii\web\HttpException
getAccessRules() public method

public void getAccessRules ( )