/**
  * Constructor.
  * @param $template string
  * @param $user PKPUser
  */
 function PublicProfileForm($user)
 {
     parent::BaseProfileForm('user/publicProfileForm.tpl', $user);
     // Validation checks for this form
     $this->addCheck(new FormValidatorORCID($this, 'orcid', 'optional', 'user.orcid.orcidInvalid'));
     $this->addCheck(new FormValidatorUrl($this, 'userUrl', 'optional', 'user.profile.form.urlInvalid'));
 }
 /**
  * Constructor.
  * @param $template string
  * @param $user PKPUser
  */
 function IdentityForm($user)
 {
     parent::BaseProfileForm('user/identityForm.tpl', $user);
     // Validation checks for this form
     $this->addCheck(new FormValidator($this, 'firstName', 'required', 'user.profile.form.firstNameRequired'));
     $this->addCheck(new FormValidator($this, 'lastName', 'required', 'user.profile.form.lastNameRequired'));
 }
 /**
  * Constructor.
  * @param $user PKPUser
  */
 function ContactForm($user)
 {
     parent::BaseProfileForm('user/contactForm.tpl', $user);
     // Validation checks for this form
     $this->addCheck(new FormValidator($this, 'country', 'required', 'user.profile.form.countryRequired'));
     $this->addCheck(new FormValidatorCustom($this, 'email', 'required', 'user.register.form.emailExists', array(DAORegistry::getDAO('UserDAO'), 'userExistsByEmail'), array($user->getId(), true), true));
 }
Exemple #4
0
 /**
  * Constructor.
  * @param $template string
  * @param $user PKPUser
  */
 function RolesForm($user)
 {
     parent::BaseProfileForm('user/rolesForm.tpl', $user);
     // Validation checks for this form
 }