| 1 | <?php |
||
| 13 | class EmailConfirmForm extends Model |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \modules\users\models\BaseUser |
||
| 17 | */ |
||
| 18 | private $_user; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Creates a form model given a token. |
||
| 22 | * |
||
| 23 | * @param string $token |
||
| 24 | * @param array $config |
||
| 25 | * @throws \yii\base\InvalidParamException if token is empty or not valid |
||
| 26 | */ |
||
| 27 | public function __construct($token = '', $config = []) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Confirm email. |
||
| 41 | * |
||
| 42 | * @return boolean if email was confirmed. |
||
| 43 | */ |
||
| 44 | public function confirmEmail() |
||
| 57 | } |
||
| 58 |