Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
UserRecoveryPasswordChangeWidget Class Reference
Inheritance diagram for UserRecoveryPasswordChangeWidget:
BaseUserWidget BaseJuiWidget

Public Member Functions

 run ()
- Public Member Functions inherited from BaseUserWidget
 init ()
- Public Member Functions inherited from BaseJuiWidget
 getViewFile ($viewName)

Detailed Description

Definition at line 3 of file UserRecoveryPasswordChangeWidget.php.

Member Function Documentation

UserRecoveryPasswordChangeWidget::run ( )

Shows a particular model.

Returns
void

Definition at line 10 of file UserRecoveryPasswordChangeWidget.php.

{
if (isset($_GET['email'], $_GET['activkey'])) {
$model = new UserChangePassword;
if (($userChangePasswordData = Yii::app()->user->getState('UserChangePassword')) != null) {
$model->attributes = $userChangePasswordData['attributes'];
foreach ($userChangePasswordData['errors'] as $attribute => $errors) {
foreach ($errors as $e) {
$model->addError($attribute, $e);
}
}
Yii::app()->user->setState('UserChangePassword', null);
}
$this->render('UserRecoveryPasswordChangeWidget', array('model' => $model, 'email' => $_GET['email'], 'activkey' => $_GET['activkey']));
return;
}
$this->render('UserRecoveryPasswordChangeWidget');
}

The documentation for this class was generated from the following file: