Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct () | |
execute (... $functionArgs) | |
fetch ($request, $template=null, $display=false) | |
getAssocId () | |
getAssocType () | |
getNewNoteFormTemplate () | |
getSubmitNoteLocaleKey () | |
readInputData () | |
Public Member Functions inherited from Form | |
__construct ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null) | |
_decomposeArray ($name, $value, $stack) | |
addCheck ($formValidator) | |
addError ($field, $message) | |
addErrorField ($field) | |
addSupportedFormLocale ($supportedLocale) | |
display ($request=null, $template=null) | |
getData ($key) | |
getDefaultFormLocale () | |
getErrorsArray () | |
getLocaleFieldNames () | |
getRequiredLocale () | |
getTemplate () | |
initData () | |
isValid () | |
readUserVars ($vars) | |
setData ($key, $value=null) | |
setDefaultFormLocale ($defaultLocale) | |
setTemplate ($template) | |
validate ($callHooks=true) | |
Additional Inherited Members | |
Data Fields inherited from Form | |
$_checks | |
$_data | |
$_errors | |
$_template | |
$cssValidation | |
$defaultLocale | |
$errorFields | |
$errorsArray | |
$formSectionErrors | |
$requiredLocale | |
$supportedLocales | |
Form to display and post notes on a file.
Definition at line 19 of file NewNoteForm.inc.php.
NewNoteForm::__construct | ( | ) |
NewNoteForm::execute | ( | $functionArgs | ) |
Execute the form's action. (Note that it is assumed that the form has already been validated.)
mixed | $functionArgs,... | Arguments from the caller to be passed to the hook consumer |
Reimplemented from Form.
Definition at line 91 of file NewNoteForm.inc.php.
References PKPApplication\get(), getAssocId(), getAssocType(), DAORegistry\getDAO(), and Form\getData().
NewNoteForm::fetch | ( | $request, | |
$template = null , |
|||
$display = false |
|||
) |
Returns a string of the rendered form
$request | PKPRequest |
$template | string the template to be rendered, mandatory if no template has been specified on class instantiation. |
$display | boolean |
Reimplemented from Form.
Reimplemented in NewFileNoteForm.
Definition at line 67 of file NewNoteForm.inc.php.
References DAORegistry\getDAO(), and PKPTemplateManager\getManager().
NewNoteForm::getAssocId | ( | ) |
Return the assoc ID for this note.
Reimplemented in NewFileNoteForm, and NewSubmissionNoteForm.
Definition at line 42 of file NewNoteForm.inc.php.
Referenced by execute().
NewNoteForm::getAssocType | ( | ) |
Return the assoc type for this note.
Reimplemented in NewFileNoteForm, and NewSubmissionNoteForm.
Definition at line 34 of file NewNoteForm.inc.php.
Referenced by execute().
NewNoteForm::getNewNoteFormTemplate | ( | ) |
Get the new note form template. Subclasses can override this method to define other template.
Definition at line 60 of file NewNoteForm.inc.php.
NewNoteForm::getSubmitNoteLocaleKey | ( | ) |
Return the submit note button locale key. Should be overriden by subclasses.
Reimplemented in NewFileNoteForm, and NewSubmissionNoteForm.
Definition at line 51 of file NewNoteForm.inc.php.
NewNoteForm::readInputData | ( | ) |
Assign form data to user-submitted data. Can be overridden from subclasses.
Reimplemented from Form.
Definition at line 81 of file NewNoteForm.inc.php.
References Form\readUserVars().