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

Public Member Functions

 execute ()
 
 fetch ($request)
 
 getMonograph ()
 
 getPublicationDate ()
 
 initData ()
 
 PublicationDateForm ($monograph, $publicationDate)
 
 readInputData ()
 
 setMonograph ($monograph)
 
 setPublicationDate ($publicationDate)
 
- 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

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

Detailed Description

Form for adding/editing a publication date.

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

Member Function Documentation

PublicationDateForm::execute ( )

Save the date

See Also
Form::execute()

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

References DAORegistry\getDAO(), Form\getData(), getMonograph(), and getPublicationDate().

PublicationDateForm::fetch (   $request)

Fetch the form.

See Also
Form::fetch()

Definition at line 115 of file PublicationDateForm.inc.php.

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

PublicationDateForm::getMonograph ( )

Get the Monograph

Returns
Monograph

Definition at line 79 of file PublicationDateForm.inc.php.

References $_monograph.

Referenced by execute(), and fetch().

PublicationDateForm::getPublicationDate ( )

Get the date

Returns
PublicationDate

Definition at line 63 of file PublicationDateForm.inc.php.

References $_publicationDate.

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

PublicationDateForm::initData ( )

Initialize form data from the publication date.

Definition at line 98 of file PublicationDateForm.inc.php.

References getPublicationDate().

PublicationDateForm::PublicationDateForm (   $monograph,
  $publicationDate 
)

Constructor.

Definition at line 28 of file PublicationDateForm.inc.php.

References Form\addCheck(), DAORegistry\getDAO(), setMonograph(), and setPublicationDate().

PublicationDateForm::readInputData ( )

Assign form data to user-submitted data.

See Also
Form::readInputData()

Definition at line 162 of file PublicationDateForm.inc.php.

References Form\readUserVars().

PublicationDateForm::setMonograph (   $monograph)

Set the Monograph

Parameters
Monograph

Definition at line 87 of file PublicationDateForm.inc.php.

Referenced by PublicationDateForm().

PublicationDateForm::setPublicationDate (   $publicationDate)

Set the date

Parameters
@publicationDatePublicationDate

Definition at line 71 of file PublicationDateForm.inc.php.

Referenced by PublicationDateForm().

Member Data Documentation

PublicationDateForm::$_monograph

The monograph associated with the format being edited

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

Referenced by getMonograph().

PublicationDateForm::$_publicationDate

PublicationDate the code being edited

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

Referenced by getPublicationDate().


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