|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($site) | |
| _setMailFrom ($request, $mail) | |
| execute (... $functionArgs) | |
| fetch ($request, $template=null, $display=false) | |
| initData () | |
| readInputData () | |
| validate ($callHooks=true) | |
Public Member Functions inherited from Form | |
| __construct ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null) | |
| _decomposeArray ($name, $value, $stack) | |
| addCheck ($formValidator) | |
| addError ($field, $message) | |
| addErrorField ($field) | |
| addSupportedFormLocale ($supportedLocale) | |
| display ($request=null, $template=null) | |
| getData ($key) | |
| getDefaultFormLocale () | |
| getErrorsArray () | |
| getLocaleFieldNames () | |
| getRequiredLocale () | |
| getTemplate () | |
| isValid () | |
| readUserVars ($vars) | |
| setData ($key, $value=null) | |
| setDefaultFormLocale ($defaultLocale) | |
| setTemplate ($template) | |
Data Fields | |
| $captchaEnabled | |
| $defaultAuth | |
| $existingUser | |
| $user | |
Data Fields inherited from Form | |
| $_checks | |
| $_data | |
| $_errors | |
| $_template | |
| $cssValidation | |
| $defaultLocale | |
| $errorFields | |
| $errorsArray | |
| $formSectionErrors | |
| $requiredLocale | |
| $supportedLocales | |
Form for user registration.
Definition at line 21 of file RegistrationForm.inc.php.
| RegistrationForm::__construct | ( | $site | ) |
Constructor.
Definition at line 50 of file RegistrationForm.inc.php.
References $defaultAuth, Form\addCheck(), PKPApplication\get(), DAORegistry\getDAO(), and Config\getVar().
| RegistrationForm::_setMailFrom | ( | $request, | |
| ) |
Set mail from address
| $request | PKPRequest |
| MailTemplate |
Definition at line 359 of file RegistrationForm.inc.php.
Referenced by execute().
| RegistrationForm::execute | ( | $functionArgs | ) |
Register a new user.
Reimplemented from Form.
Definition at line 227 of file RegistrationForm.inc.php.
References $user, _setMailFrom(), Validation\encryptCredentials(), PKPApplication\get(), Core\getCurrentDate(), DAORegistry\getDAO(), Form\getData(), AppLocale\getLocale(), SessionManager\getManager(), and Config\getVar().
| RegistrationForm::fetch | ( | $request, | |
$template = null, |
|||
$display = false |
|||
| ) |
Returns a string of the rendered form
| $request | PKPRequest |
| $template | string the template to be rendered, mandatory if no template has been specified on class instantiation. |
| $display | boolean |
Reimplemented from Form.
Definition at line 99 of file RegistrationForm.inc.php.
References PKPTemplateManager\getManager(), and Config\getVar().
| RegistrationForm::initData | ( | ) |
Initialize form data for a new form.
Reimplemented from Form.
Definition at line 138 of file RegistrationForm.inc.php.
| RegistrationForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Definition at line 148 of file RegistrationForm.inc.php.
References Form\getData(), Form\readUserVars(), and Form\setData().
| RegistrationForm::validate | ( | $callHooks = true | ) |
Validate form data.
| $callHooks | boolean True (default) iff hooks are to be called. |
Reimplemented from Form.
Definition at line 183 of file RegistrationForm.inc.php.
References Form\addError(), PKPApplication\get(), DAORegistry\getDAO(), Form\getData(), and Config\getVar().
| boolean RegistrationForm::$captchaEnabled |
whether or not captcha is enabled for this form
Definition at line 45 of file RegistrationForm.inc.php.
| AuthPlugin RegistrationForm::$defaultAuth |
default authentication source, if specified
Definition at line 39 of file RegistrationForm.inc.php.
Referenced by __construct().
| boolean RegistrationForm::$existingUser |
user is already registered with another context
Definition at line 33 of file RegistrationForm.inc.php.
| User RegistrationForm::$user |
The user object being created (available to hooks during registrationform::execute hook)
Definition at line 27 of file RegistrationForm.inc.php.
Referenced by execute().