PHP Class DOAJXmlFilter, ojs

Inheritance: extends NativeExportFilter
Datei anzeigen Open project: pkp/ojs

Public Methods

Method Description
__construct ( $filterGroup ) Constructor
createAffiliationsList ( $authors, $article ) : array Generate a list of affiliations among all authors of an article.
createAuthorNode ( $doc, $article, $author, $affilList ) : DOMElement Generate the author node.
createRootNode ( $doc ) : DOMElement Create and return the root node.
formatDate ( $date ) : string Format a date by Y-m-d format.
getClassName ( )
process ( &$pubObjects ) : DOMDocument

Method Details

__construct() public method

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

createAffiliationsList() public method

Generate a list of affiliations among all authors of an article.
public createAffiliationsList ( $authors, $article ) : array
$authors object Array of article authors
$article Article
return array

createAuthorNode() public method

Generate the author node.
public createAuthorNode ( $doc, $article, $author, $affilList ) : DOMElement
$doc DOMDocument
$article object Article
$author object Author
$affilList array List of author affiliations
return DOMElement

createRootNode() public method

Create and return the root node.
public createRootNode ( $doc ) : DOMElement
$doc DOMDocument
return DOMElement

formatDate() public method

Format a date by Y-m-d format.
public formatDate ( $date ) : string
$date string
return string

getClassName() public method

public getClassName ( )

process() public method

See also: Filter::process()
public process ( &$pubObjects ) : DOMDocument
$pubObjects array Array of PublishedArticles
return DOMDocument