Open Journal Systems  3.3.0
ReviewFormForm Class Reference
Inheritance diagram for ReviewFormForm:
Form

Public Member Functions

 __construct ($reviewFormId=null)
 
 execute (... $functionArgs)
 
 fetch ($request, $template=null, $display=false)
 
 getLocaleFieldNames ()
 
 initData ()
 
 readInputData ()
 
- Public Member Functions inherited from Form
 __construct ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 addSupportedFormLocale ($supportedLocale)
 
 display ($request=null, $template=null)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 isValid ()
 
 readUserVars ($vars)
 
 setData ($key, $value=null)
 
 setDefaultFormLocale ($defaultLocale)
 
 setTemplate ($template)
 
 validate ($callHooks=true)
 

Data Fields

 $reviewFormId
 
- Data Fields inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $defaultLocale
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for manager to edit a review form.

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

Constructor & Destructor Documentation

◆ __construct()

ReviewFormForm::__construct (   $reviewFormId = null)

Constructor.

Parameters
$reviewFormIdomit for a new review form

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

References $reviewFormId, and Form\addCheck().

Member Function Documentation

◆ execute()

ReviewFormForm::execute (   $functionArgs)

Execute the form's action. (Note that it is assumed that the form has already been validated.)

Parameters
mixed$functionArgs,...Arguments from the caller to be passed to the hook consumer
Returns
mixed Result from the consumer to be passed to the caller. Send a true-ish result if you want the caller to do something with the return value.

Reimplemented from Form.

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

References PKPApplication\get(), Application\getContextAssocType(), DAORegistry\getDAO(), and Form\getData().

◆ fetch()

ReviewFormForm::fetch (   $request,
  $template = null,
  $display = false 
)

Returns a string of the rendered form

Parameters
$requestPKPRequest
$templatestring the template to be rendered, mandatory if no template has been specified on class instantiation.
$displayboolean
Returns
string the rendered form

Reimplemented from Form.

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

References PKPTemplateManager\getManager().

◆ getLocaleFieldNames()

ReviewFormForm::getLocaleFieldNames ( )

Get a list of field names for which localized settings are used

Returns
array

Reimplemented from Form.

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

References DAORegistry\getDAO().

◆ initData()

ReviewFormForm::initData ( )

Initialize form data from current settings.

Reimplemented from Form.

Definition at line 47 of file ReviewFormForm.inc.php.

References PKPApplication\get(), Application\getContextAssocType(), DAORegistry\getDAO(), and Form\setData().

◆ readInputData()

ReviewFormForm::readInputData ( )

Assign form data to user-submitted data.

Reimplemented from Form.

Definition at line 40 of file ReviewFormForm.inc.php.

References Form\readUserVars().

Field Documentation

◆ $reviewFormId

ReviewFormForm::$reviewFormId

The ID of the review form being edited, if any

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

Referenced by __construct().


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