Class humhub\modules\user\models\forms\Registration

Inheritancehumhub\modules\user\models\forms\Registration » humhub\compat\HForm » yii\base\Component

Description of Registration

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$form humhub\compat\HForm

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getGroupFormDefinition() humhub\modules\user\models\forms\Registration
getPasswordFormDefinition() Create Password Model form fields required for registration humhub\modules\user\models\forms\Registration
getUserFormDefinition() Create User Model form fields required for registration humhub\modules\user\models\forms\Registration
setFormDefinition() Builds HForm Definition to automatically build form output humhub\modules\user\models\forms\Registration
setModels() Set models User, Profile and Password to Form humhub\modules\user\models\forms\Registration

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_AFTER_REGISTRATION \yii\web\UserEvent Triggered after successful registration. humhub\modules\user\models\forms\Registration

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
EVENT_AFTER_INIT 'afterInit' humhub\compat\HForm
EVENT_AFTER_VALIDATE 'afterValidate' humhub\compat\HForm
EVENT_BEFORE_RENDER 'beforeRender' humhub\compat\HForm
EVENT_BEFORE_VALIDATE 'beforeValidate' humhub\compat\HForm

Property Details

$enableEmailField public property

Show e-mail field

public boolean $enableEmailField false
$enablePasswordForm public property

Show password creation form

$enableUserApproval public property

Require user approval by admin after registration.

Method Details

getErrors() public method

public void getErrors ( )
getGroupFormDefinition() protected method

protected void getGroupFormDefinition ( )
getGroupUser() public method

Returns Password model

public humhub\modules\user\models\Password getGroupUser ( )
getPassword() public method

Returns Password model

public humhub\modules\user\models\Password getPassword ( )
getPasswordFormDefinition() protected method

Create Password Model form fields required for registration

protected array getPasswordFormDefinition ( )
return array

Form definition

getProfile() public method

Returns Profile model

public humhub\modules\user\models\Profile getProfile ( )
getUser() public method

Returns User model

public humhub\modules\user\models\User getUser ( )
getUserFormDefinition() protected method

Create User Model form fields required for registration

protected array getUserFormDefinition ( )
return array

Form definition

init() public method

public void init ( )
register() public method

Registers users

public boolean register ( \yii\authclient\ClientInterface $authClient null )
$authClient
return boolean

State

render() public method

public void render ( $form )
$form
setFormDefinition() protected method

Builds HForm Definition to automatically build form output

protected void setFormDefinition ( )
setModels() protected method

Set models User, Profile and Password to Form

protected void setModels ( )
submitted() public method

public void submitted ( $buttonName "" )
$buttonName
validate() public method

public void validate ( )

Event Details

EVENT_AFTER_REGISTRATION event of type \yii\web\UserEvent

Triggered after successful registration.