|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($monograph, $publicationFormat, $publication) | |
| execute (... $functionParams) | |
| fetch ($request, $template=null, $display=false) | |
| getMonograph () | |
| getPublication () | |
| getPublicationFormat () | |
| initData () | |
| readInputData () | |
| setMonograph ($monograph) | |
| setPublication ($publication) | |
| setPublicationFormat ($publicationFormat) | |
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 | |
| $_monograph | |
| $_publication = null | |
| $_publicationFormat | |
Data Fields inherited from Form | |
| $_checks | |
| $_data | |
| $_errors | |
| $_template | |
| $cssValidation | |
| $defaultLocale | |
| $errorFields | |
| $errorsArray | |
| $formSectionErrors | |
| $requiredLocale | |
| $supportedLocales | |
Form for adding/editing a format.
Definition at line 18 of file PublicationFormatForm.inc.php.
| PublicationFormatForm::__construct | ( | $monograph, | |
| $publicationFormat, | |||
| $publication | |||
| ) |
Constructor.
Definition at line 34 of file PublicationFormatForm.inc.php.
References Form\addCheck(), setMonograph(), setPublication(), and setPublicationFormat().
| PublicationFormatForm::execute | ( | $functionParams | ) |
Save the assigned format
Reimplemented from Form.
Definition at line 160 of file PublicationFormatForm.inc.php.
References PKPApplication\get(), DAORegistry\getDAO(), Form\getData(), getMonograph(), getPublication(), getPublicationFormat(), and SubmissionLog\logEvent().
| PublicationFormatForm::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 126 of file PublicationFormatForm.inc.php.
References DAORegistry\getDAO(), PKPTemplateManager\getManager(), getMonograph(), getPublication(), and getPublicationFormat().
| PublicationFormatForm::getMonograph | ( | ) |
Get the Monograph
Definition at line 71 of file PublicationFormatForm.inc.php.
References $_monograph.
| PublicationFormatForm::getPublication | ( | ) |
Get the Publication
Definition at line 88 of file PublicationFormatForm.inc.php.
References $_publication.
| PublicationFormatForm::getPublicationFormat | ( | ) |
Get the format
Definition at line 55 of file PublicationFormatForm.inc.php.
References $_publicationFormat.
Referenced by execute(), fetch(), and initData().
| PublicationFormatForm::initData | ( | ) |
Initialize form data from the associated publication format.
Reimplemented from Form.
Definition at line 107 of file PublicationFormatForm.inc.php.
References getPublicationFormat(), and Form\setData().
| PublicationFormatForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Definition at line 145 of file PublicationFormatForm.inc.php.
References Form\readUserVars().
| PublicationFormatForm::setMonograph | ( | $monograph | ) |
Set the MonographId
| Monograph |
Definition at line 79 of file PublicationFormatForm.inc.php.
Referenced by __construct().
| PublicationFormatForm::setPublication | ( | $publication | ) |
Set the PublicationId
| Publication |
Definition at line 96 of file PublicationFormatForm.inc.php.
Referenced by __construct().
| PublicationFormatForm::setPublicationFormat | ( | $publicationFormat | ) |
Set the publication format
Definition at line 63 of file PublicationFormatForm.inc.php.
Referenced by __construct().
| PublicationFormatForm::$_monograph |
The monograph associated with the format being edited
Definition at line 20 of file PublicationFormatForm.inc.php.
Referenced by getMonograph().
| $_publication PublicationFormatForm::$_publication = null |
Definition at line 29 of file PublicationFormatForm.inc.php.
Referenced by getPublication().
| PublicationFormatForm::$_publicationFormat |
PublicationFormat the format being edited
Definition at line 23 of file PublicationFormatForm.inc.php.
Referenced by getPublicationFormat().