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

Public Member Functions

 _getAnnouncementTypesAssocId ()
 
 _setAnnouncementAssocId ($announcement)
 
 AnnouncementForm ($pressId, $announcementId=null, $readOnly=false)
 
 execute ($request)
 
 fetch ($request)
 
 isReadOnly ()
 
 readInputData ()
 
 setDateExpire ($announcement)
 
- Public Member Functions inherited from PKPAnnouncementForm
 _getAnnouncementTypesAssocId ()
 
 _setAnnouncementAssocId ($announcement)
 
 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)
 

Public Attributes

 $_readOnly
 
- Public Attributes inherited from PKPAnnouncementForm
 $announcementId
 
- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for to read/create/edit announcements.

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

Member Function Documentation

AnnouncementForm::_getAnnouncementTypesAssocId ( )

Get the association information for announcement types.

Returns
array (assocType, assocId);

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

AnnouncementForm::_setAnnouncementAssocId (   $announcement)

Helper function to assign the AssocType and the AssocId

Parameters
Announcementthe announcement to be modified

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

AnnouncementForm::AnnouncementForm (   $pressId,
  $announcementId = null,
  $readOnly = false 
)

Constructor

Parameters
$pressIdint
$announcementIdint leave as default for new announcement
$readOnlyboolean

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

AnnouncementForm::execute (   $request)
See Also
PKPAnnouncementForm::execute()
Parameters
$requestPKPRequest

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

AnnouncementForm::fetch (   $request)
See Also
Form::fetch()
Parameters
$requestPKPRequest

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

AnnouncementForm::isReadOnly ( )

Return if this form is read only or not.

Returns
boolean

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

AnnouncementForm::readInputData ( )

Assign form data to user-submitted data.

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

AnnouncementForm::setDateExpire (   $announcement)

Member Data Documentation

$_readOnly AnnouncementForm::$_readOnly

boolean

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


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