PHP Class SectionGridHandler, ojs

Inheritance: extends SetupGridHandler
Mostra file Open project: pkp/ojs

Public Methods

Method Description
__construct ( ) Constructor
addSection ( $args, $request ) An action to add a new section
deleteSection ( $args, $request ) : JSONMessage Delete a section
editSection ( $args, $request ) : JSONMessage An action to edit a section
getDataElementSequence ( $row )
initFeatures ( $request, $args )
initialize ( $request ) * Configure the grid
setDataElementSequence ( $request, $rowId, $gridDataElement, $newSequence )
updateSection ( $args, $request ) : JSONMessage Update a section

Protected Methods

Method Description
getRowInstance ( ) : SectionGridRow Get the row handler - override the default row handler

Method Details

__construct() public method

Constructor
public __construct ( )

addSection() public method

An action to add a new section
public addSection ( $args, $request )
$args array
$request PKPRequest

deleteSection() public method

Delete a section
public deleteSection ( $args, $request ) : JSONMessage
$args array
$request PKPRequest
return JSONMessage JSON object

editSection() public method

An action to edit a section
public editSection ( $args, $request ) : JSONMessage
$args array
$request PKPRequest
return JSONMessage Serialized JSON object

getDataElementSequence() public method

public getDataElementSequence ( $row )

getRowInstance() protected method

Get the row handler - override the default row handler
protected getRowInstance ( ) : SectionGridRow
return SectionGridRow

initFeatures() public method

public initFeatures ( $request, $args )

initialize() public method

* Configure the grid
public initialize ( $request )
$request PKPRequest

setDataElementSequence() public method

public setDataElementSequence ( $request, $rowId, $gridDataElement, $newSequence )

updateSection() public method

Update a section
public updateSection ( $args, $request ) : JSONMessage
$args array
$request PKPRequest
return JSONMessage JSON object