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

Public Member Functions

 AuthorForm ($submission, $author, $submissionIdFieldName)
 
 execute ()
 
 fetch ($request)
 
 getAuthor ()
 
 getSubmission ()
 
 getSubmissionIdFieldName ()
 
 initData ()
 
 readInputData ()
 
 setAuthor ($author)
 
 setSubmission ($submission)
 
 setSubmissionIdFieldName ($submissionIdFieldName)
 
- 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

 $_author
 
 $_submission
 
 $_submissionIdFieldName
 
- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for adding/editing a author.

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

Member Function Documentation

AuthorForm::AuthorForm (   $submission,
  $author,
  $submissionIdFieldName 
)

Constructor.

Definition at line 31 of file AuthorForm.inc.php.

References Form\addCheck(), setAuthor(), setSubmission(), and setSubmissionIdFieldName().

AuthorForm::execute ( )
AuthorForm::fetch (   $request)

Fetch the form.

See Also
Form::fetch()

Definition at line 130 of file AuthorForm.inc.php.

References getAuthor(), DAORegistry\getDAO(), getSubmission(), and getSubmissionIdFieldName().

AuthorForm::getAuthor ( )

Get the author

Returns
Author

Definition at line 53 of file AuthorForm.inc.php.

References $_author.

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

AuthorForm::getSubmission ( )

Get the Submission

Returns
Submission

Definition at line 69 of file AuthorForm.inc.php.

References $_submission.

Referenced by execute(), and fetch().

AuthorForm::getSubmissionIdFieldName ( )

Get the Submission Id field name

Returns
String

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

References $_submissionIdFieldName.

Referenced by fetch().

AuthorForm::initData ( )

Initialize form data from the associated author.

Parameters
$authorAuthor

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

References getAuthor(), and AppLocale\getLocale().

AuthorForm::readInputData ( )

Assign form data to user-submitted data.

See Also
Form::readInputData()

Definition at line 156 of file AuthorForm.inc.php.

References Form\readUserVars().

AuthorForm::setAuthor (   $author)

Set the author

Parameters
@authorAuthor

Definition at line 61 of file AuthorForm.inc.php.

Referenced by AuthorForm().

AuthorForm::setSubmission (   $submission)

Set the Submission

Parameters
Submission

Definition at line 77 of file AuthorForm.inc.php.

Referenced by AuthorForm().

AuthorForm::setSubmissionIdFieldName (   $submissionIdFieldName)

Set the Submission Id field name

Parameters
String

Definition at line 93 of file AuthorForm.inc.php.

Referenced by AuthorForm().

Member Data Documentation

AuthorForm::$_author

Author the author being edited

Definition at line 23 of file AuthorForm.inc.php.

Referenced by getAuthor().

AuthorForm::$_submission

The submission associated with the submission contributor being edited

Definition at line 20 of file AuthorForm.inc.php.

Referenced by getSubmission().

AuthorForm::$_submissionIdFieldName

The type of submission Id

Definition at line 26 of file AuthorForm.inc.php.

Referenced by getSubmissionIdFieldName().


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