getDetails(); $details->setFirstname($_POST['firstname']); $details->setLastname($_POST['lastname']); $details->setEmail($_POST['email']); $details->setSex($_POST['sex']); $details->setHomepage($_POST['homepage']); $details->update(); $_SESSION['psyhvel_notice'] = gettext("Saved!"); return array('pid' => 'Preferences', 'mode' => 'myprefsview'); } /** * @Secured(roles={'authenticated'}) * */ function actionCancel() { $_SESSION['psyhvel_notice'] = gettext("Action cancelled!"); return array('pid' => 'Preferences', 'mode' => 'myprefsview'); } } ?>