Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
SubscriptionForm Class Reference
Inheritance diagram for SubscriptionForm:
Form IndividualSubscriptionForm InstitutionalSubscriptionForm

Public Member Functions

_prepareNotificationEmail ($mailTemplateKey)
 display ()
 execute ()
 initData ()
 readInputData ()
 SubscriptionForm ($subscriptionId=null, $userId=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

Detailed Description

Base form class for subscription create/edits.

Definition at line 22 of file

Member Function Documentation

& SubscriptionForm::_prepareNotificationEmail (   $mailTemplateKey)

Internal function to prepare notification email

Definition at line 268 of file

References DAORegistry\getDAO(), and Request\getJournal().

Referenced by IndividualSubscriptionForm\execute(), and InstitutionalSubscriptionForm\execute().

SubscriptionForm::display ( )

Display the form.

Definition at line 83 of file

References DAORegistry\getDAO(), Form\getData(), and Request\getJournal().

SubscriptionForm::execute ( )

Save subscription.

Definition at line 226 of file

References DAORegistry\getDAO(), Form\getData(), and Request\getJournal().

SubscriptionForm::initData ( )

Initialize form data from current subscription.

Definition at line 132 of file

References DAORegistry\getDAO().

SubscriptionForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 175 of file

References Form\addCheck(), DAORegistry\getDAO(), Form\getData(), PKPRequest\getUserDateVar(), and Form\readUserVars().

SubscriptionForm::SubscriptionForm (   $subscriptionId = null,
  $userId = null 


subscriptionIdint leave as default for new subscription

Definition at line 43 of file

References Form\addCheck(), and DAORegistry\getDAO().

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