PHP Class NativeXmlSubmissionFileFilter, pkp-lib

Inheritance: extends NativeImportFilter
ファイルを表示 Open project: pkp/pkp-lib Class Usage Examples

Public Methods

Method Description
__construct ( $filterGroup ) Constructor
getClassName ( )
getPluralElementName ( ) : string Return the plural element name
getSingularElementName ( ) : string Get the singular element name
handleChildElement ( $node, $stageId, $fileId, &$submissionFiles ) Handle a child node of the submission file element; add new files, if any, to $submissionFiles
handleElement ( $node ) : array Handle a submission file element
handleRevisionChildElement ( $node, $submission, $submissionFile ) : string Handle a child of the revision element
handleRevisionElement ( $node, $stageId, $fileId ) Handle a revision element
instantiateSubmissionFile ( $tagName ) : SubmissionFile Instantiate a submission file.
parseIdentifier ( $element, $submissionFile ) Parse an identifier node and set up the representation object accordingly

Method Details

__construct() public method

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

getClassName() public method

public getClassName ( )

getPluralElementName() public method

Return the plural element name
public getPluralElementName ( ) : string
return string

getSingularElementName() public method

Get the singular element name
public getSingularElementName ( ) : string
return string

handleChildElement() public method

Handle a child node of the submission file element; add new files, if any, to $submissionFiles
public handleChildElement ( $node, $stageId, $fileId, &$submissionFiles )
$node DOMElement
$stageId int SUBMISSION_FILE_...
$fileId int File id
$submissionFiles array

handleElement() public method

Handle a submission file element
public handleElement ( $node ) : array
$node DOMElement
return array Array of SubmissionFile objects

handleRevisionChildElement() public method

Handle a child of the revision element
public handleRevisionChildElement ( $node, $submission, $submissionFile ) : string
$node DOMElement
$submission Submission
$submissionFile SubmissionFile
return string Filename for new file

handleRevisionElement() public method

Handle a revision element
public handleRevisionElement ( $node, $stageId, $fileId )
$node DOMElement
$stageId int SUBMISSION_FILE_...
$fileId int File id

instantiateSubmissionFile() public method

Instantiate a submission file.
public instantiateSubmissionFile ( $tagName ) : SubmissionFile
$tagName string
return SubmissionFile

parseIdentifier() public method

Parse an identifier node and set up the representation object accordingly
public parseIdentifier ( $element, $submissionFile )
$element DOMElement
$submissionFile SubmissionFile