Class dektrium\user\models\SettingsForm
Inheritance | dektrium\user\models\SettingsForm » yii\base\Model |
---|
SettingsForm gets user's username, email and password and changes them.
Public Properties
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$mailer | dektrium\user\Mailer | dektrium\user\models\SettingsForm | |
$module | dektrium\user\Module | dektrium\user\models\SettingsForm |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | dektrium\user\models\SettingsForm | |
attributeLabels() | dektrium\user\models\SettingsForm | |
formName() | dektrium\user\models\SettingsForm | |
getUser() | dektrium\user\models\SettingsForm | |
rules() | dektrium\user\models\SettingsForm | |
save() | Saves new account settings. | dektrium\user\models\SettingsForm |
Protected Methods
Method | Description | Defined By |
---|---|---|
defaultEmailChange() | Sends a confirmation message to user's email address with link to confirm changing of email. | dektrium\user\models\SettingsForm |
insecureEmailChange() | Changes user's email address to given without any confirmation. | dektrium\user\models\SettingsForm |
secureEmailChange() | Sends a confirmation message to both old and new email addresses with link to confirm changing of email. | dektrium\user\models\SettingsForm |
Property Details
Method Details
public void __construct ( dektrium\user\Mailer $mailer, $config = [] ) | ||
$mailer | ||
$config |
public void attributeLabels ( ) |
Sends a confirmation message to user's email address with link to confirm changing of email.
protected void defaultEmailChange ( ) |
public void formName ( ) |
public dektrium\user\models\User getUser ( ) |
Changes user's email address to given without any confirmation.
protected void insecureEmailChange ( ) |
public void rules ( ) |
Saves new account settings.
public bool save ( ) |
Sends a confirmation message to both old and new email addresses with link to confirm changing of email.
protected void secureEmailChange ( ) | ||
throws | \yii\base\InvalidConfigException |
---|