Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
AnnouncementForm Class Reference

Inherits PKPAnnouncementForm.

Public Member Functions

 _setAnnouncementAssocId (&$announcement)
 
 AnnouncementForm ($journalId, $announcementId=null)
 
 display ()
 
 execute (&$request)
 
- Public Member Functions inherited from PKPAnnouncementForm
 display ()
 
 execute ()
 
 getContextId ()
 
 getLocaleFieldNames ()
 
 initData ()
 
 PKPAnnouncementForm ($contextId, $announcementId=null)
 
 readInputData ()
 
 setDateExpire (&$announcement)
 
- 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)
 

Additional Inherited Members

- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 

Detailed Description

Form for journal managers to create/edit announcements.

Form for managers to create/edit announcements.

Definition at line 22 of file AnnouncementForm.inc.php.

Member Function Documentation

AnnouncementForm::_setAnnouncementAssocId ( $announcement)

Helper function to assign the AssocType and the AssocId

Parameters
Announcementthe announcement to be modified

Definition at line 52 of file AnnouncementForm.inc.php.

AnnouncementForm::AnnouncementForm (   $journalId,
  $announcementId = null 
)

Constructor

Parameters
announcementIdint leave as default for new announcement

Definition at line 27 of file AnnouncementForm.inc.php.

References Form\addCheck().

AnnouncementForm::display ( )

Display the form.

Definition at line 37 of file AnnouncementForm.inc.php.

AnnouncementForm::execute ( $request)

Save announcement.

Parameters
$requestRequest

Definition at line 62 of file AnnouncementForm.inc.php.

References DAORegistry\getDAO().


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