PHP Class NativeXmlIssueFilter, ojs

Inheritance: extends NativeImportFilter
Show file Open project: pkp/ojs

Public Methods

Method Description
__construct ( $filterGroup ) Constructor
_getDateIssueSetterMappings ( ) : array Get node name to setter function mapping for issue date fields.
_getLocalizedIssueSetterMappings ( ) : array Get node name to setter function mapping for localized data.
_sectionExist ( $importSection ) : boolean Check if the section already exists.
getClassName ( )
getPluralElementName ( ) : string Return the plural element name
getSingularElementName ( ) : string Get the singular element name
handleChildElement ( $n, $issue ) Handle an element whose parent is the issue element.
handleElement ( $node ) : Issue Handle a singular element import.
parseArticle ( $n, $issue ) Parse an article and add it to the issue.
parseArticles ( $node, $issue ) Parse an articles element
parseCover ( $node, $object ) Parse out the cover and store it in the object.
parseIdentifier ( $element, $issue ) Parse an identifier node and set up the issue object accordingly
parseIssueCovers ( $node, $object ) Parse out the object covers.
parseIssueGalley ( $n, $issue ) Parse an issue galley and add it to the issue.
parseIssueGalleys ( $node, $issue ) Parse an articles element
parseIssueIdentification ( $node, $issue ) Parse out the issue identification and store it in an issue.
parseSection ( $node, $issue ) Parse a section stored in an issue.
parseSections ( $node, $issue ) Parse a submission file and add it to the submission.

Method Details

__construct() public method

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

_getDateIssueSetterMappings() public method

Get node name to setter function mapping for issue date fields.

_getLocalizedIssueSetterMappings() public method

Get node name to setter function mapping for localized data.

_sectionExist() public method

Check if the section already exists.
public _sectionExist ( $importSection ) : boolean
$importSection Section New created section
return boolean

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 an element whose parent is the issue element.
public handleChildElement ( $n, $issue )
$n DOMElement
$issue Issue

handleElement() public method

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

parseArticle() public method

Parse an article and add it to the issue.
public parseArticle ( $n, $issue )
$n DOMElement
$issue Issue

parseArticles() public method

Parse an articles element
public parseArticles ( $node, $issue )
$node DOMElement
$issue Issue

parseCover() public method

Parse out the cover and store it in the object.
public parseCover ( $node, $object )
$node DOMElement
$object Issue

parseIdentifier() public method

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

parseIssueCovers() public method

Parse out the object covers.
public parseIssueCovers ( $node, $object )
$node DOMElement
$object Issue

parseIssueGalley() public method

Parse an issue galley and add it to the issue.
public parseIssueGalley ( $n, $issue )
$n DOMElement
$issue Issue

parseIssueGalleys() public method

Parse an articles element
public parseIssueGalleys ( $node, $issue )
$node DOMElement
$issue Issue

parseIssueIdentification() public method

Parse out the issue identification and store it in an issue.
public parseIssueIdentification ( $node, $issue )
$node DOMElement
$issue Issue

parseSection() public method

Parse a section stored in an issue.
public parseSection ( $node, $issue )
$node DOMElement
$issue Issue

parseSections() public method

Parse a submission file and add it to the submission.
public parseSections ( $node, $issue )
$node DOMElement
$issue Issue