ConfirmEmailUsersBaseCommand Class Reference
[Usermanagement]
Confirm email of user. More...
Inheritance diagram for
ConfirmEmailUsersBaseCommand:
Protected Member Functions |
|
do_execute () | |
Execute this command. |
Detailed Description
Confirm email of user.
Definition at line 8 of file confirmemailusers.cmd.php.
Member Function Documentation
ConfirmEmailUsersBaseCommand::do_execute | ( | ) | [protected] |
Execute this command.
Reimplemented from CommandChain.
Definition at line 12 of file confirmemailusers.cmd.php.
00012 { 00013 $ret = new Status(); 00014 $user = $this->get_instance(); 00015 $mail = $this->get_params(); 00016 00017 $params = array( 00018 'emailstatus' => Users::EMAIL_STATUS_CONFIRMED, 00019 'emailconfirmationdate' => time() 00020 ); 00021 if ($mail) { 00022 $params['email'] = $mail; 00023 } 00024 00025 // Chain next commands 00026 Load::commands('generics/update'); 00027 $this->append(new UpdateCommand($user, $params)); 00028 00029 return $ret; 00030 }
The documentation for this class was generated from the following file:
- contributions/usermanagement/behaviour/commands/base/confirmemailusers.cmd.php