PHP Class NativeXmlArticleFilter, ojs

Inheritance: extends NativeXmlSubmissionFilter
Exibir arquivo Open project: pkp/ojs

Public Methods

Method Description
__construct ( $filterGroup ) Constructor
getClassName ( )
getImportFilter ( $elementName ) : Filter Get the import filter for a given element.
getPublishedSubmissionDAO ( ) : DAO Get the published submission DAO for this application.
getPublishedSubmissionInsertMethod ( ) : string Get the method name for inserting a published submission.
handleChildElement ( $n, $submission ) Handle an element whose parent is the submission element.
parseArticleGalley ( $n, $submission ) Parse an article galley and add it to the submission.
parseIssueIdentification ( $node ) : Issue Get the issue from the given identification.
populateObject ( $submission, $node ) : Submission Populate the submission object from the node
populatePublishedSubmission ( PublishedArticle $submission, DOMElement $node ) : PublishedArticle Class-specific methods for published submissions.
process ( &$document ) : array

Method Details

__construct() public method

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

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

getPublishedSubmissionDAO() public method

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

getPublishedSubmissionInsertMethod() public method

Get the method name for inserting a published submission.

handleChildElement() public method

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

parseArticleGalley() public method

Parse an article galley and add it to the submission.
public parseArticleGalley ( $n, $submission )
$n DOMElement
$submission Submission

parseIssueIdentification() public method

Get the issue from the given identification.
public parseIssueIdentification ( $node ) : Issue
$node DOMElement
return Issue

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 ( PublishedArticle $submission, DOMElement $node ) : PublishedArticle
$submission PublishedArticle
$node DOMElement
return PublishedArticle

process() public method

See also: Filter::process()
public process ( &$document ) : array
$document DOMDocument|string
return array Array of imported documents