Public Member Functions | Public Attributes

ChapterForm Class Reference

Form for adding/editing a chapter stores/retrieves from an associative array. More...

List of all members.

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

Detailed Description

Form for adding/editing a chapter stores/retrieves from an associative array.

Definition at line 18 of file ChapterForm.inc.php.


Member Function Documentation

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.

Parameters:
$request Request
$rowId mixed ID of row to modify
Returns:
boolean

Definition at line 176 of file ChapterForm.inc.php.

References getChapter().

Referenced by updateEntry().

ChapterForm.execute (  ) 

Save chapter

See also:
Form.execute()

Definition at line 113 of file ChapterForm.inc.php.

References getChapter(), getMonograph(), and setChapter().

ChapterForm.getChapter (  ) 

Get the Chapter associated with this form

Returns:
Chapter

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.

Returns:
Monograph

Definition at line 49 of file ChapterForm.inc.php.

Referenced by execute(), initData(), and insertEntry().

ChapterForm.initData (  ) 

Initialize form data from the associated chapter.

Parameters:
$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.

Parameters:
$request Request
$newRowId mixed New entry with data to persist
Returns:
boolean

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.

See also:
Form.readInputData()

Definition at line 105 of file ChapterForm.inc.php.

ChapterForm.setChapter ( chapter  ) 

Set the Chapter associated with this form

Parameters:
$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.

Parameters:
$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().


Member Data Documentation

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.


The documentation for this class was generated from the following file: