Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
function RegistrationForm() {
...
if ($this->existingUser) {
...
} else {
...
$this->addCheck(new FormValidator($this, 'city', 'required', 'user.profile.form.cityRequired'));
$this->addCheck(new FormValidator($this, 'state', 'required', 'user.profile.form.stateRequired'));
$this->addCheck(new FormValidator($this, 'zipCode', 'required', 'user.profile.form.zipCodeRequired'));
$this->addCheck(new FormValidator($this, 'country', 'required', 'user.profile.form.countryRequired'));
}
}
function readInputData() {
$this->readUserVars(
array(
'username', 'password', 'password2',
'firstName', 'middleName', 'lastName', 'initials',
'affiliation', 'email', 'phone', 'fax',
'mailingAddress', 'city', 'state', 'zipCode', 'country',
'biography', 'interests', 'userLocales',
'registerAsReader', 'registerAsAuthor',
'registerAsReviewer', 'existingUser'
)
);
function execute() {
if ($this->existingUser) {
...
} else {
$user->setCity($this->getData('city'));
$user->setState($this->getData('state'));
$user->setZipCode($this->getData('zipCode'));
$user->setCountry($this->getData('country'));
...
}} else {
// New user
$user = &new User();
$user->setCity($this->getData('city'));
$user->setState($this->getData('state'));
$user->setZipCode($this->getData('zipCode'));
$user->setCountry($this->getData('country'));
...classes/user/User.inc.php
classes/user/UserDAO.inc.php
classes/user/form/ProfileForm.inc.php
classes/user/form/RegistrationForm.inc.php
classes/user/form/UserManagementForm.inc.php
pages/manager/PeopleHandler.inc.php
templates/user/register.tpl
templates/user/profile.tpl
templates/manager/people/userProfile.tpl
templates/manager/people/userProfileForm.tpl
Users browsing this forum: No registered users and 1 guest