PHP Class ReviewFormElementForm, pkp-lib

Inheritance: extends Form
Show file Open project: pkp/pkp-lib Class Usage Examples

Public Properties

Property Type Description
$reviewFormElementId int The ID of the review form element being edited
$reviewFormId int The ID of the review form being edited

Public Methods

Method Description
__construct ( $reviewFormId, $reviewFormElementId = null ) Constructor.
deleteEntry ( $request, $rowId )
execute ( $request ) : integer Save review form element.
fetch ( $args, $request ) Display the form.
getLocaleFieldNames ( ) : array Get the names of fields for which localized data is allowed.
initData ( $request ) Initialize form data from current review form.
insertEntry ( $request, $newRowId )
readInputData ( ) Assign form data to user-submitted data.
updateEntry ( $request, $rowId, $newRowId )

Method Details

__construct() public method

Constructor.
public __construct ( $reviewFormId, $reviewFormElementId = null )
$reviewFormId int
$reviewFormElementId int

deleteEntry() public method

public deleteEntry ( $request, $rowId )

execute() public method

Save review form element.
public execute ( $request ) : integer
$request PKPRequest
return integer Review form element ID

fetch() public method

Display the form.
public fetch ( $args, $request )
$args array
$request PKPRequest

getLocaleFieldNames() public method

Get the names of fields for which localized data is allowed.
public getLocaleFieldNames ( ) : array
return array

initData() public method

Initialize form data from current review form.
public initData ( $request )
$request PKPRequest

insertEntry() public method

public insertEntry ( $request, $newRowId )

readInputData() public method

Assign form data to user-submitted data.
public readInputData ( )

updateEntry() public method

public updateEntry ( $request, $rowId, $newRowId )

Property Details

$reviewFormElementId public property

int The ID of the review form element being edited
public $reviewFormElementId

$reviewFormId public property

int The ID of the review form being edited
public $reviewFormId