|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($submission, $publication, $publicationDate) | |
| execute (... $functionArgs) | |
| fetch ($request, $template=null, $display=false) | |
| getPublication () | |
| getPublicationDate () | |
| getSubmission () | |
| initData () | |
| readInputData () | |
| setPublication ($publication) | |
| setPublicationDate ($publicationDate) | |
| setSubmission ($submission) | |
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 () | |
| isValid () | |
| readUserVars ($vars) | |
| setData ($key, $value=null) | |
| setDefaultFormLocale ($defaultLocale) | |
| setTemplate ($template) | |
| validate ($callHooks=true) | |
Data Fields | |
| $_publication | |
| $_publicationDate | |
| $_submission | |
Data Fields inherited from Form | |
| $_checks | |
| $_data | |
| $_errors | |
| $_template | |
| $cssValidation | |
| $defaultLocale | |
| $errorFields | |
| $errorsArray | |
| $formSectionErrors | |
| $requiredLocale | |
| $supportedLocales | |
Form for adding/editing a publication date.
Definition at line 18 of file PublicationDateForm.inc.php.
| PublicationDateForm::__construct | ( | $submission, | |
| $publication, | |||
| $publicationDate | |||
| ) |
Constructor.
Definition at line 31 of file PublicationDateForm.inc.php.
References Form\addCheck(), DAORegistry\getDAO(), setPublication(), setPublicationDate(), and setSubmission().
| PublicationDateForm::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 193 of file PublicationDateForm.inc.php.
References fatalError(), DAORegistry\getDAO(), Form\getData(), getPublication(), getPublicationDate(), and getSubmission().
| PublicationDateForm::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.
Definition at line 136 of file PublicationDateForm.inc.php.
References fatalError(), DAORegistry\getDAO(), PKPTemplateManager\getManager(), getPublication(), getPublicationDate(), and getSubmission().
| PublicationDateForm::getPublication | ( | ) |
Get the Publication
Definition at line 101 of file PublicationDateForm.inc.php.
References $_publication.
| PublicationDateForm::getPublicationDate | ( | ) |
Get the date
Definition at line 69 of file PublicationDateForm.inc.php.
References $_publicationDate.
Referenced by execute(), fetch(), and initData().
| PublicationDateForm::getSubmission | ( | ) |
Get the Submission
Definition at line 85 of file PublicationDateForm.inc.php.
References $_submission.
| PublicationDateForm::initData | ( | ) |
Initialize form data from the publication date.
Reimplemented from Form.
Definition at line 120 of file PublicationDateForm.inc.php.
References getPublicationDate().
| PublicationDateForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Definition at line 180 of file PublicationDateForm.inc.php.
References Form\readUserVars().
| PublicationDateForm::setPublication | ( | $publication | ) |
Set the Publication
| Publication |
Definition at line 109 of file PublicationDateForm.inc.php.
Referenced by __construct().
| PublicationDateForm::setPublicationDate | ( | $publicationDate | ) |
Set the date
Definition at line 77 of file PublicationDateForm.inc.php.
Referenced by __construct().
| PublicationDateForm::setSubmission | ( | $submission | ) |
Set the Submission
| Submission |
Definition at line 93 of file PublicationDateForm.inc.php.
Referenced by __construct().
| PublicationDateForm::$_publication |
The publication associated with the format being edited
Definition at line 23 of file PublicationDateForm.inc.php.
Referenced by getPublication().
| PublicationDateForm::$_publicationDate |
PublicationDate the code being edited
Definition at line 26 of file PublicationDateForm.inc.php.
Referenced by getPublicationDate().
| PublicationDateForm::$_submission |
The submission associated with the format being edited
Definition at line 20 of file PublicationDateForm.inc.php.
Referenced by getSubmission().