Beispiel #1
0
 /**
  * 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'));
 }
Beispiel #2
0
 /**
  * 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'));
 }
Beispiel #3
0
 /**
  * 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));
 }
Beispiel #4
0
 /**
  * Constructor.
  * @param $template string
  * @param $user PKPUser
  */
 function RolesForm($user)
 {
     parent::BaseProfileForm('user/rolesForm.tpl', $user);
     // Validation checks for this form
 }