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

Public Member Functions

 display ()
 execute (&$request)
 getCanEdit ()
 getDefaultFormLocale ()
 getLocaleFieldNames ()
 initData ()
 MetadataForm ($article, $journal)
 readInputData ()
 validate ()
- 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

Form to change metadata information for a submission.

Definition at line 21 of file

Member Function Documentation

MetadataForm::display ( )
MetadataForm::execute ( $request)

Save changes to article.

int the article ID

Definition at line 322 of file

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

MetadataForm::getCanEdit ( )

Determine whether or not the current user is allowed to edit metadata.


Definition at line 480 of file

MetadataForm::getDefaultFormLocale ( )

Get the default form locale.


Definition at line 112 of file

MetadataForm::getLocaleFieldNames ( )

Get the field names for which data can be localized


Definition at line 188 of file

MetadataForm::initData ( )

Initialize form data from current article.

Definition at line 120 of file

References Form\getData(), and Form\setData().

MetadataForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 243 of file

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

MetadataForm::validate ( )

Check to ensure that the form is correctly validated.

Definition at line 292 of file

References Form\addError(), and Request\getJournal().

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