Open Journal Systems  2.4.4
 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
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 

Detailed Description

Base form class for subscription create/edits.

Definition at line 22 of file SubscriptionForm.inc.php.

Member Function Documentation

& SubscriptionForm::_prepareNotificationEmail (   $mailTemplateKey)

Internal function to prepare notification email

Definition at line 266 of file SubscriptionForm.inc.php.

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

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

SubscriptionForm::display ( )

Display the form.

Definition at line 83 of file SubscriptionForm.inc.php.

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

SubscriptionForm::execute ( )

Save subscription.

Definition at line 225 of file SubscriptionForm.inc.php.

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

SubscriptionForm::initData ( )

Initialize form data from current subscription.

Definition at line 132 of file SubscriptionForm.inc.php.

References DAORegistry\getDAO().

SubscriptionForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 174 of file SubscriptionForm.inc.php.

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

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

Constructor

Parameters
subscriptionIdint leave as default for new subscription

Definition at line 43 of file SubscriptionForm.inc.php.

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


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