Class humhub\modules\user\controllers\RegistrationController

Inheritancehumhub\modules\user\controllers\RegistrationController » humhub\components\Controller » yii\web\Controller
Available since version1.1

RegistrationController handles new user registration

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$actionTitlesMap array Page titles humhub\components\Controller
$layout humhub\modules\user\controllers\RegistrationController
$pageTitle string Title of the rendered page humhub\components\Controller
$prependActionTitles boolean Append page title humhub\components\Controller
$subLayout null|string The name of the sub layout to be applied to this controller's views. humhub\components\Controller

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
actionIndex() Registration Form humhub\modules\user\controllers\RegistrationController
appendPageTitle() Append a page title. humhub\components\Controller
beforeAction() humhub\modules\user\controllers\RegistrationController
behaviors() humhub\components\Controller
forcePostRequest() Throws HttpException in case the request is not an post request, otherwise returns true. humhub\components\Controller
getAccess() humhub\components\Controller
htmlRedirect() Create Redirect for AJAX Requests which output goes into HTML content. humhub\components\Controller
init() humhub\components\Controller
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

Events

Hide inherited events

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

Property Details

$layout public property
public $layout "@humhub/modules/user/views/layouts/main"

Method Details

actionIndex() public method

Registration Form

public void actionIndex ( )
throws \yii\web\HttpException
throws \yii\base\Exception
beforeAction() public method

public void beforeAction ( $action )
$action
throws \yii\web\HttpException
handleAuthClientRegistration() protected method

protected boolean handleAuthClientRegistration ( \yii\authclient\ClientInterface $authClient, humhub\modules\user\models\forms\Registration $registration )
$authClient \yii\authclient\BaseClient
$registration humhub\modules\user\models\forms\Registration
return boolean

Already all registration data gathered

throws \yii\base\Exception
handleInviteRegistration() protected method

protected void handleInviteRegistration ( $inviteToken, humhub\modules\user\models\forms\Registration $form )
$inviteToken
$form humhub\modules\user\models\forms\Registration
throws \yii\web\HttpException