Form for adding/editing a chapter stores/retrieves from an associative array. More...
Public Member Functions | |
| ChapterForm ($monograph, &$chapter) | |
| deleteEntry (&$request, $rowId) | |
| execute () | |
| getChapter () | |
| getMonograph () | |
| initData () | |
| insertEntry (&$request, $newRowId) | |
| readInputData () | |
| setChapter ($chapter) | |
| setMonograph ($monograph) | |
| updateEntry (&$request, $rowId, $newRowId) | |
Public Attributes | |
| $_chapter | |
| $_monographId | |
Form for adding/editing a chapter stores/retrieves from an associative array.
Definition at line 18 of file ChapterForm.inc.php.
| ChapterForm.ChapterForm | ( | $ | monograph, | |
| &$ | chapter | |||
| ) |
Constructor.
Definition at line 28 of file ChapterForm.inc.php.
References setChapter(), and setMonograph().
| ChapterForm.deleteEntry | ( | &$ | request, | |
| $ | rowId | |||
| ) |
Delete an author entry.
| $request | Request | |
| $rowId | mixed ID of row to modify |
Definition at line 176 of file ChapterForm.inc.php.
References getChapter().
Referenced by updateEntry().
| ChapterForm.execute | ( | ) |
Save chapter
Definition at line 113 of file ChapterForm.inc.php.
References getChapter(), getMonograph(), and setChapter().
| ChapterForm.getChapter | ( | ) |
Get the Chapter associated with this form
Definition at line 65 of file ChapterForm.inc.php.
Referenced by deleteEntry(), execute(), initData(), and insertEntry().
| ChapterForm.getMonograph | ( | ) |
Get the monograph associated with this chapter grid.
Definition at line 49 of file ChapterForm.inc.php.
Referenced by execute(), initData(), and insertEntry().
| ChapterForm.initData | ( | ) |
Initialize form data from the associated chapter.
| $chapter | Chapter |
Definition at line 84 of file ChapterForm.inc.php.
References getChapter(), and getMonograph().
| ChapterForm.insertEntry | ( | &$ | request, | |
| $ | newRowId | |||
| ) |
Persist a new author entry insert.
| $request | Request | |
| $newRowId | mixed New entry with data to persist |
Definition at line 146 of file ChapterForm.inc.php.
References getChapter(), and getMonograph().
Referenced by updateEntry().
| ChapterForm.readInputData | ( | ) |
Assign form data to user-submitted data.
Definition at line 105 of file ChapterForm.inc.php.
| ChapterForm.setChapter | ( | $ | chapter | ) |
Set the Chapter associated with this form
| $chapter | Chapter |
Definition at line 73 of file ChapterForm.inc.php.
Referenced by ChapterForm(), and execute().
| ChapterForm.setMonograph | ( | $ | monograph | ) |
Set the monograph associated with this chapter grid.
| $monograph | Monograph |
Definition at line 57 of file ChapterForm.inc.php.
Referenced by ChapterForm().
| ChapterForm.updateEntry | ( | &$ | request, | |
| $ | rowId, | |||
| $ | newRowId | |||
| ) |
FIXME: duplicated function from Listbuilder base class. The updateEntry callback was not getting called because the this on Listbuilder unpack function was set to this form.
Definition at line 165 of file ChapterForm.inc.php.
References deleteEntry(), and insertEntry().
| ChapterForm.$_chapter |
Chapter the chapter being edited
Definition at line 23 of file ChapterForm.inc.php.
| ChapterForm.$_monographId |
The monograph associated with the submission chapter being edited
Definition at line 20 of file ChapterForm.inc.php.
1.7.1