Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($reviewFormId, $reviewFormElementId=null) | |
deleteEntry ($request, $rowId) | |
execute (... $functionArgs) | |
fetch ($request, $template=null, $display=false) | |
getLocaleFieldNames () | |
initData () | |
insertEntry ($request, $newRowId) | |
readInputData () | |
updateEntry ($request, $rowId, $newRowId) | |
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 | |
$reviewFormElementId | |
$reviewFormId | |
Data Fields inherited from Form | |
$_checks | |
$_data | |
$_errors | |
$_template | |
$cssValidation | |
$defaultLocale | |
$errorFields | |
$errorsArray | |
$formSectionErrors | |
$requiredLocale | |
$supportedLocales | |
Form for creating and modifying review form elements.
Definition at line 21 of file ReviewFormElementForm.inc.php.
ReviewFormElementForm::__construct | ( | $reviewFormId, | |
$reviewFormElementId = null |
|||
) |
Constructor.
$reviewFormId | int |
$reviewFormElementId | int |
Definition at line 40 of file ReviewFormElementForm.inc.php.
References $reviewFormElementId, $reviewFormId, and Form\addCheck().
ReviewFormElementForm::deleteEntry | ( | $request, | |
$rowId | |||
) |
Delete an entry.
$request | Request object |
$rowId | mixed ID of row to modify |
Definition at line 169 of file ReviewFormElementForm.inc.php.
References Form\getData(), and Form\setData().
ReviewFormElementForm::execute | ( | $functionArgs | ) |
Execute the form's action. (Note that it is assumed that the form has already been validated.)
mixed | $functionArgs,... | Arguments from the caller to be passed to the hook consumer |
Reimplemented from Form.
Definition at line 114 of file ReviewFormElementForm.inc.php.
References $reviewFormElementId, fatalError(), PKPApplication\get(), Application\getContextAssocType(), DAORegistry\getDAO(), Form\getData(), ReviewFormElement\getMultipleResponsesElementTypes(), Form\setData(), and ListbuilderHandler\unpack().
ReviewFormElementForm::fetch | ( | $request, | |
$template = null , |
|||
$display = false |
|||
) |
Returns a string of the rendered form
$request | PKPRequest |
$template | string the template to be rendered, mandatory if no template has been specified on class instantiation. |
$display | boolean |
Reimplemented from Form.
Definition at line 65 of file ReviewFormElementForm.inc.php.
References PKPTemplateManager\getManager(), ReviewFormElement\getMultipleResponsesElementTypes(), and ReviewFormElement\getReviewFormElementTypeOptions().
ReviewFormElementForm::getLocaleFieldNames | ( | ) |
Get the names of fields for which localized data is allowed.
Reimplemented from Form.
Definition at line 57 of file ReviewFormElementForm.inc.php.
References DAORegistry\getDAO().
ReviewFormElementForm::initData | ( | ) |
Initialize form data from current review form.
Reimplemented from Form.
Definition at line 81 of file ReviewFormElementForm.inc.php.
References PKPApplication\get(), and DAORegistry\getDAO().
ReviewFormElementForm::insertEntry | ( | $request, | |
$newRowId | |||
) |
Persist a new entry insert.
$request | Request object |
$newRowId | mixed ID of row to modify |
Definition at line 157 of file ReviewFormElementForm.inc.php.
References Form\getData(), and Form\setData().
ReviewFormElementForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Definition at line 106 of file ReviewFormElementForm.inc.php.
References Form\readUserVars().
ReviewFormElementForm::updateEntry | ( | $request, | |
$rowId, | |||
$newRowId | |||
) |
Persist an update to an entry.
$request | Request object |
$rowId | mixed ID of row to modify |
$newRowId | mixed ID of the new entry |
Definition at line 183 of file ReviewFormElementForm.inc.php.
References Form\getData(), and Form\setData().
$reviewFormElementId ReviewFormElementForm::$reviewFormElementId |
int The ID of the review form element being edited
Definition at line 33 of file ReviewFormElementForm.inc.php.
Referenced by __construct(), and execute().
$reviewFormId ReviewFormElementForm::$reviewFormId |
int The ID of the review form being edited
Definition at line 27 of file ReviewFormElementForm.inc.php.
Referenced by __construct().