Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
ReferralForm Class Reference
Inheritance diagram for ReferralForm:
Form

Public Member Functions

 display ()
 
 execute ()
 
 getLocaleFieldNames ()
 
 initData ()
 
 readInputData ()
 
 ReferralForm (&$plugin, &$article, $referralId=null)
 
- Public Member Functions inherited from Form
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 display ($request=null, $template=null)
 
 execute ($object=null)
 
 fetch (&$request, $template=null, $display=false)
 
 Form ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getFormLocale ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 initData ()
 
 isLocaleResubmit ()
 
 isValid ()
 
 readInputData ()
 
 readUserDateVars ($vars)
 
 readUserVars ($vars)
 
 setData ($key, $value)
 
 setTemplate ($template)
 
 smartyFormLanguageChooser ($params, &$smarty)
 
 validate ($callHooks=true)
 

Additional Inherited Members

- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 

Detailed Description

Form for authors to create/edit referrals.

See Also
AnnouncementForm

Definition at line 19 of file ReferralForm.inc.php.

Member Function Documentation

ReferralForm::display ( )

Display the form.

Definition at line 55 of file ReferralForm.inc.php.

ReferralForm::execute ( )

Save referral.

Definition at line 95 of file ReferralForm.inc.php.

References Core\getCurrentDate(), DAORegistry\getDAO(), and Form\getData().

ReferralForm::getLocaleFieldNames ( )

Get a list of localized field names for this form

Returns
array

Definition at line 47 of file ReferralForm.inc.php.

References DAORegistry\getDAO().

ReferralForm::initData ( )

Initialize form data from current referral.

Definition at line 67 of file ReferralForm.inc.php.

References DAORegistry\getDAO().

ReferralForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 88 of file ReferralForm.inc.php.

References Form\readUserVars().

ReferralForm::ReferralForm ( $plugin,
$article,
  $referralId = null 
)

Constructor

Parameters
referralIdint leave as default for new referral

Definition at line 30 of file ReferralForm.inc.php.

References Form\addCheck().


The documentation for this class was generated from the following file: