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

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

Detailed Description

Form to change metadata information for a submission.

Definition at line 21 of file MetadataForm.inc.php.

Member Function Documentation

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

Save changes to article.

Parameters
$requestPKPRequest
Returns
int the article ID

Definition at line 322 of file MetadataForm.inc.php.

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.

Returns
boolean

Definition at line 480 of file MetadataForm.inc.php.

MetadataForm::getDefaultFormLocale ( )

Get the default form locale.

Returns
string

Definition at line 112 of file MetadataForm.inc.php.

MetadataForm::getLocaleFieldNames ( )

Get the field names for which data can be localized

Returns
array

Definition at line 188 of file MetadataForm.inc.php.

MetadataForm::initData ( )

Initialize form data from current article.

Definition at line 120 of file MetadataForm.inc.php.

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

MetadataForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 243 of file MetadataForm.inc.php.

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 MetadataForm.inc.php.

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


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