Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
PublicationFormatForm Class Reference
Inheritance diagram for PublicationFormatForm:
Form

Public Member Functions

 execute ($request)
 
 fetch ($request)
 
 getMonograph ()
 
 getPublicationFormat ()
 
 initData ()
 
 PublicationFormatForm ($monograph, $publicationFormat)
 
 readInputData ()
 
 setMonograph ($monograph)
 
 setPublicationFormat ($publicationFormat)
 
- 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)
 

Public Attributes

 $_monograph
 
 $_publicationFormat
 
- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for adding/editing a format.

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

Member Function Documentation

PublicationFormatForm::execute (   $request)

Save the assigned format

Parameters
PKPRequestrequest
See Also
Form::execute()

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

References DAORegistry\getDAO(), Form\getData(), getMonograph(), getPublicationFormat(), and SubmissionLog\logEvent().

PublicationFormatForm::fetch (   $request)

Fetch the form.

See Also
Form::fetch()

Definition at line 99 of file PublicationFormatForm.inc.php.

References DAORegistry\getDAO(), getMonograph(), and getPublicationFormat().

PublicationFormatForm::getMonograph ( )

Get the Monograph

Returns
Monograph

Definition at line 62 of file PublicationFormatForm.inc.php.

References $_monograph.

Referenced by execute(), and fetch().

PublicationFormatForm::getPublicationFormat ( )

Get the format

Returns
PublicationFormat

Definition at line 46 of file PublicationFormatForm.inc.php.

References $_publicationFormat.

Referenced by execute(), fetch(), and initData().

PublicationFormatForm::initData ( )

Initialize form data from the associated publication format.

Definition at line 81 of file PublicationFormatForm.inc.php.

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

PublicationFormatForm::PublicationFormatForm (   $monograph,
  $publicationFormat 
)

Constructor.

Definition at line 28 of file PublicationFormatForm.inc.php.

References Form\addCheck(), setMonograph(), and setPublicationFormat().

PublicationFormatForm::readInputData ( )

Assign form data to user-submitted data.

See Also
Form::readInputData()

Definition at line 121 of file PublicationFormatForm.inc.php.

References Form\readUserVars().

PublicationFormatForm::setMonograph (   $monograph)

Set the MonographId

Parameters
Monograph

Definition at line 70 of file PublicationFormatForm.inc.php.

Referenced by PublicationFormatForm().

PublicationFormatForm::setPublicationFormat (   $publicationFormat)

Set the publication format

Parameters
@formatPublicationFormat

Definition at line 54 of file PublicationFormatForm.inc.php.

Referenced by PublicationFormatForm().

Member Data Documentation

PublicationFormatForm::$_monograph

The monograph associated with the format being edited

Definition at line 20 of file PublicationFormatForm.inc.php.

Referenced by getMonograph().

PublicationFormatForm::$_publicationFormat

PublicationFormat the format being edited

Definition at line 23 of file PublicationFormatForm.inc.php.

Referenced by getPublicationFormat().


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