PHP Class NativeXmlSubmissionFilter, pkp-lib

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

Public Methods

Method Description
__construct ( $filterGroup ) Constructor
_getControlledVocabulariesMappings ( ) : array Get node name to DAO and insert function mapping.
_getLocalizedSubmissionSetterMappings ( ) : array Get node name to setter function mapping for localized data.
getClassName ( )
getImportFilter ( $elementName ) : Filter Get the import filter for a given element.
getPluralElementName ( ) : string Return the plural element name
getPublishedSubmissionDAO ( ) : DAO Get the published submission DAO for this application.
getRepresentationExportFilterGroupName ( ) : string Get the representation export filter group name
getSingularElementName ( ) : string Get the singular element name
handleChildElement ( $n, $submission ) Handle an element whose parent is the submission element.
handleElement ( $node ) Handle a singular element import.
parseAuthor ( $n, $submission ) Parse an author and add it to the submission.
parseAuthors ( $node, $submission ) Parse an authors element
parseIdentifier ( $element, $submission ) Parse an identifier node and set up the submission object accordingly
parseSubmissionFile ( $n, $submission ) Parse a submission file and add it to the submission.
populateObject ( $submission, $node ) : Submission Populate the submission object from the node
populatePublishedSubmission ( PublishedSubmission $submission, DOMElement $node ) : PublishedSubmission Class-specific methods for published submissions.

Method Details

__construct() public method

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

_getControlledVocabulariesMappings() public method

Get node name to DAO and insert function mapping.

_getLocalizedSubmissionSetterMappings() public method

Get node name to setter function mapping for localized data.

getClassName() public method

public getClassName ( )

getImportFilter() public method

Get the import filter for a given element.
public getImportFilter ( $elementName ) : Filter
$elementName string Name of XML element
return Filter

getPluralElementName() public method

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

getPublishedSubmissionDAO() public method

Get the published submission DAO for this application.
public getPublishedSubmissionDAO ( ) : DAO
return DAO

getRepresentationExportFilterGroupName() public method

Get the representation export filter group name

getSingularElementName() public method

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

handleChildElement() public method

Handle an element whose parent is the submission element.
public handleChildElement ( $n, $submission )
$n DOMElement
$submission Submission

handleElement() public method

Handle a singular element import.
public handleElement ( $node )
$node DOMElement

parseAuthor() public method

Parse an author and add it to the submission.
public parseAuthor ( $n, $submission )
$n DOMElement
$submission Submission

parseAuthors() public method

Parse an authors element
public parseAuthors ( $node, $submission )
$node DOMElement
$submission Submission

parseIdentifier() public method

Parse an identifier node and set up the submission object accordingly
public parseIdentifier ( $element, $submission )
$element DOMElement
$submission Submission

parseSubmissionFile() public method

Parse a submission file and add it to the submission.
public parseSubmissionFile ( $n, $submission )
$n DOMElement
$submission Submission

populateObject() public method

Populate the submission object from the node
public populateObject ( $submission, $node ) : Submission
$submission Submission
$node DOMElement
return Submission

populatePublishedSubmission() public method

Class-specific methods for published submissions.
public populatePublishedSubmission ( PublishedSubmission $submission, DOMElement $node ) : PublishedSubmission
$submission PublishedSubmission
$node DOMElement
return PublishedSubmission