Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
NewNoteForm Class Reference
Inheritance diagram for NewNoteForm:
Form NewFileNoteForm NewSignoffNoteForm NewSubmissionNoteForm

Public Member Functions

 execute ($request)
 
 fetch ($request)
 
 getAssocId ()
 
 getAssocType ()
 
 getNewNoteFormTemplate ()
 
 getSubmitNoteLocaleKey ()
 
 NewNoteForm ()
 
 readInputData ()
 
- 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
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form to display and post notes on a file.

Definition at line 19 of file NewNoteForm.inc.php.

Member Function Documentation

NewNoteForm::execute (   $request)

Execute the form's action. (Note that it is assumed that the form has already been validated.)

Parameters
$objectobject The object edited by this form.
Returns
$object The same object, potentially changed via hook.

Definition at line 91 of file NewNoteForm.inc.php.

References getAssocId(), getAssocType(), DAORegistry\getDAO(), and Form\getData().

NewNoteForm::fetch (   $request)

Returns a string of the rendered form

Parameters
$requestPKPRequest
$templatestring the template to be rendered, mandatory if no template has been specified on class instantiation.
$displayboolean
Returns
string the rendered form

Definition at line 66 of file NewNoteForm.inc.php.

References getAssocId(), getAssocType(), DAORegistry\getDAO(), getNewNoteFormTemplate(), and getSubmitNoteLocaleKey().

NewNoteForm::getAssocId ( )

Return the assoc ID for this note.

Returns
int

Definition at line 41 of file NewNoteForm.inc.php.

Referenced by execute(), and fetch().

NewNoteForm::getAssocType ( )

Return the assoc type for this note.

Returns
int

Definition at line 33 of file NewNoteForm.inc.php.

Referenced by execute(), and fetch().

NewNoteForm::getNewNoteFormTemplate ( )

Get the new note form template. Subclasses can override this method to define other template.

Returns
string

Definition at line 59 of file NewNoteForm.inc.php.

Referenced by fetch().

NewNoteForm::getSubmitNoteLocaleKey ( )

Return the submit note button locale key. Should be overriden by subclasses.

Returns
string

Definition at line 50 of file NewNoteForm.inc.php.

Referenced by fetch().

NewNoteForm::NewNoteForm ( )

Constructor.

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

References Form\addCheck().

NewNoteForm::readInputData ( )

Assign form data to user-submitted data. Can be overridden from subclasses.

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

References Form\readUserVars().

Referenced by PKPSubmissionInformationCenterHandler\saveNote().


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