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

Public Member Functions

 display ()
 
 execute ()
 
 getLocaleFieldNames ()
 
 initData ()
 
 readInputData ()
 
 SubscriptionTypeForm ($typeId=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 journal managers to create/edit subscription types.

Definition at line 18 of file SubscriptionTypeForm.inc.php.

Member Function Documentation

SubscriptionTypeForm::display ( )

Display the form.

Definition at line 93 of file SubscriptionTypeForm.inc.php.

SubscriptionTypeForm::execute ( )

Save subscription type.

Definition at line 147 of file SubscriptionTypeForm.inc.php.

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

SubscriptionTypeForm::getLocaleFieldNames ( )

Get a list of localized field names for this form

Returns
array

Definition at line 85 of file SubscriptionTypeForm.inc.php.

References DAORegistry\getDAO().

SubscriptionTypeForm::initData ( )

Initialize form data from current subscription type.

Definition at line 106 of file SubscriptionTypeForm.inc.php.

References DAORegistry\getDAO().

SubscriptionTypeForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 134 of file SubscriptionTypeForm.inc.php.

References Form\addCheck(), Form\getData(), and Form\readUserVars().

SubscriptionTypeForm::SubscriptionTypeForm (   $typeId = null)

Constructor

Parameters
typeIdint leave as default for new subscription type

Definition at line 32 of file SubscriptionTypeForm.inc.php.

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


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