|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($monograph, $publication, $chapter) | |
| execute (... $functionParams) | |
| fetch ($request, $template=null, $display=false) | |
| getChapter () | |
| getMonograph () | |
| getPublication () | |
| initData () | |
| readInputData () | |
| setChapter ($chapter) | |
| setMonograph ($monograph) | |
| setPublication ($publication) | |
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 | |
| $_chapter | |
| $_monograph | |
| $_publication | |
Data Fields inherited from Form | |
| $_checks | |
| $_data | |
| $_errors | |
| $_template | |
| $cssValidation | |
| $defaultLocale | |
| $errorFields | |
| $errorsArray | |
| $formSectionErrors | |
| $requiredLocale | |
| $supportedLocales | |
Form for adding/editing a chapter stores/retrieves from an associative array.
Definition at line 19 of file ChapterForm.inc.php.
| ChapterForm::__construct | ( | $monograph, | |
| $publication, | |||
| $chapter | |||
| ) |
Constructor.
| $monograph | Monograph |
| $publication | Publication |
| $chapter | Chapter |
Definition at line 35 of file ChapterForm.inc.php.
References Form\addCheck(), setChapter(), Form\setDefaultFormLocale(), setMonograph(), and setPublication().
| ChapterForm::execute | ( | $functionParams | ) |
Save chapter
Reimplemented from Form.
Definition at line 202 of file ChapterForm.inc.php.
References PKPApplication\get(), getChapter(), DAORegistry\getDAO(), Form\getData(), getMonograph(), getPublication(), and setChapter().
| ChapterForm::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 137 of file ChapterForm.inc.php.
References PKPServices\get(), getChapter(), DAORegistry\getDAO(), PKPTemplateManager\getManager(), getMonograph(), and getPublication().
| ChapterForm::getChapter | ( | ) |
Get the Chapter associated with this form
Definition at line 91 of file ChapterForm.inc.php.
References $_chapter.
Referenced by execute(), fetch(), and initData().
| ChapterForm::getMonograph | ( | ) |
Get the monograph associated with this chapter grid.
Definition at line 59 of file ChapterForm.inc.php.
References $_monograph.
Referenced by execute(), fetch(), and initData().
| ChapterForm::getPublication | ( | ) |
Get the publication associated with this chapter grid.
Definition at line 75 of file ChapterForm.inc.php.
References $_publication.
Referenced by execute(), fetch(), and initData().
| ChapterForm::initData | ( | ) |
Initialize form data from the associated chapter.
| $chapter | Chapter |
Reimplemented from Form.
Definition at line 110 of file ChapterForm.inc.php.
References getChapter(), getMonograph(), getPublication(), AppLocale\requireComponents(), and Form\setData().
| ChapterForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Definition at line 194 of file ChapterForm.inc.php.
References Form\readUserVars().
| ChapterForm::setChapter | ( | $chapter | ) |
Set the Chapter associated with this form
| $chapter | Chapter |
Definition at line 99 of file ChapterForm.inc.php.
Referenced by __construct(), and execute().
| ChapterForm::setMonograph | ( | $monograph | ) |
Set the monograph associated with this chapter grid.
| $monograph | Monograph |
Definition at line 67 of file ChapterForm.inc.php.
Referenced by __construct().
| ChapterForm::setPublication | ( | $publication | ) |
Set the publication associated with this chapter grid.
| $publication | Publication |
Definition at line 83 of file ChapterForm.inc.php.
Referenced by __construct().
| ChapterForm::$_chapter |
Chapter the chapter being edited
Definition at line 27 of file ChapterForm.inc.php.
Referenced by getChapter().
| ChapterForm::$_monograph |
The monograph associated with the chapter being edited
Definition at line 21 of file ChapterForm.inc.php.
Referenced by getMonograph().
| ChapterForm::$_publication |
The publication associated with the chapter being edited
Definition at line 24 of file ChapterForm.inc.php.
Referenced by getPublication().