Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ChapterForm Class Reference
Inheritance diagram for ChapterForm:
Form

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 Member Functions inherited from Form
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 display ($request=null, $template=null)
 
 execute ($object=null)
 
 fetch ($request, $template=null, $display=false)
 
 Form ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getFormLocale ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 initData ()
 
 isLocaleResubmit ()
 
 isValid ()
 
 readInputData ()
 
 readUserDateVars ($vars)
 
 readUserVars ($vars)
 
 setData ($key, $value)
 
 setTemplate ($template)
 
 smartyFormLanguageChooser ($params, &$smarty)
 
 validate ($callHooks=true)
 

Public Attributes

 $_chapter
 
 $_monographId
 
- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

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

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

Member Function Documentation

ChapterForm::ChapterForm (   $monograph,
$chapter 
)

Constructor.

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

References Form\addCheck(), setChapter(), and setMonograph().

ChapterForm::deleteEntry (   $request,
  $rowId 
)

Delete an author entry.

Parameters
$requestRequest
$rowIdmixed ID of row to modify
Returns
boolean

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

References getChapter(), and DAORegistry\getDAO().

Referenced by updateEntry().

ChapterForm::execute ( )
ChapterForm::getChapter ( )

Get the Chapter associated with this form

Returns
Chapter

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

References $_chapter.

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

ChapterForm::getMonograph ( )

Get the monograph associated with this chapter grid.

Returns
Monograph

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

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

ChapterForm::initData ( )

Initialize form data from the associated chapter.

Parameters
$chapterChapter

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

References getChapter(), getMonograph(), AppLocale\requireComponents(), and Form\setData().

ChapterForm::insertEntry (   $request,
  $newRowId 
)

Persist a new author entry insert.

Parameters
$requestRequest
$newRowIdmixed New entry with data to persist
Returns
boolean

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

References getChapter(), DAORegistry\getDAO(), and getMonograph().

Referenced by updateEntry().

ChapterForm::readInputData ( )

Assign form data to user-submitted data.

See Also
Form::readInputData()

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

References Form\readUserVars().

ChapterForm::setChapter (   $chapter)

Set the Chapter associated with this form

Parameters
$chapterChapter

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

Referenced by ChapterForm(), and execute().

ChapterForm::setMonograph (   $monograph)

Set the monograph associated with this chapter grid.

Parameters
$monographMonograph

Definition at line 58 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 166 of file ChapterForm.inc.php.

References deleteEntry(), and insertEntry().

Member Data Documentation

ChapterForm::$_chapter

Chapter the chapter being edited

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

Referenced by getChapter().

ChapterForm::$_monographId

The monograph associated with the submission chapter being edited

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


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