PHP Class NativeXmlSubmissionFileFilter, pkp-lib

Inheritance: extends NativeImportFilter
Afficher le fichier Open project: pkp/pkp-lib Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

getClassName() public méthode

public getClassName ( )

getPluralElementName() public méthode

Return the plural element name
public getPluralElementName ( ) : string
Résultat string

getSingularElementName() public méthode

Get the singular element name
public getSingularElementName ( ) : string
Résultat string

handleChildElement() public méthode

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 méthode

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

handleRevisionChildElement() public méthode

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

handleRevisionElement() public méthode

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

instantiateSubmissionFile() public méthode

Instantiate a submission file.
public instantiateSubmissionFile ( $tagName ) : SubmissionFile
$tagName string
Résultat SubmissionFile

parseIdentifier() public méthode

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