Class dektrium\user\models\RegistrationForm
Inheritance | dektrium\user\models\RegistrationForm » yii\base\Model |
---|
Registration form collects user input on registration process, validates it and creates new User model.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
string | User email address | dektrium\user\models\RegistrationForm | |
$password | string | Password | dektrium\user\models\RegistrationForm |
$username | string | Username | dektrium\user\models\RegistrationForm |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$module | dektrium\user\Module | dektrium\user\models\RegistrationForm |
Public Methods
Method | Description | Defined By |
---|---|---|
attributeLabels() | dektrium\user\models\RegistrationForm | |
formName() | dektrium\user\models\RegistrationForm | |
init() | dektrium\user\models\RegistrationForm | |
register() | Registers a new user account. If registration was successful it will set flash message. | dektrium\user\models\RegistrationForm |
rules() | dektrium\user\models\RegistrationForm |
Protected Methods
Method | Description | Defined By |
---|---|---|
loadAttributes() | Loads attributes to the user model. You should override this method if you are going to add new fields to the registration form. You can read more in special guide. | dektrium\user\models\RegistrationForm |
Property Details
User email address
Password
Username
Method Details
public void attributeLabels ( ) |
public void formName ( ) |
public void init ( ) |
Loads attributes to the user model. You should override this method if you are going to add new fields to the registration form. You can read more in special guide.
By default this method set all attributes of this model to the attributes of User model, so you should properly configure safe attributes of your User model.
protected void loadAttributes ( dektrium\user\models\User $user ) | ||
$user | dektrium\user\models\User |
Registers a new user account. If registration was successful it will set flash message.
public bool register ( ) |
public void rules ( ) |