PHP Class SubmissionNativeXmlFilter, pkp-lib

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

Méthodes publiques

Свойство Type Description
$_includeSubmissionsNode

Méthodes publiques

Méthode Description
__construct ( $filterGroup ) Constructor
_getControlledVocabulariesMappings ( ) : array Get controlled vocabularies parent node name to DAO, get function and item node name mapping.
addAuthors ( $doc, $submissionNode, $submission ) Add the author metadata for a submission to its DOM element.
addControlledVocabulary ( $doc, $submissionNode, $controlledVocabulariesNodeName, $controlledVocabularyNodeName, $controlledVocabulary ) Add submission controlled vocabulary to its DOM element.
addFiles ( $doc, $submissionNode, $submission ) Add the submission files to its DOM element.
addIdentifiers ( $doc, $submissionNode, $submission ) Create and add identifier nodes to a submission node.
addMetadata ( $doc, $submissionNode, $submission ) Add the submission metadata for a submission to its DOM element.
addPubIdentifier ( $doc, $submissionNode, $submission, $pubIdPlugin ) : DOMElement | null Add a single pub ID element for a given plugin to the document.
addRepresentations ( $doc, $submissionNode, $submission ) Add the representations of a submission to its DOM element.
createSubmissionNode ( $doc, $submission ) : DOMElement Create and return a submission node.
getClassName ( )
getIncludeSubmissionsNode ( ) : boolean Returnes whether to always include the node, even if there may only be one submission.
getRepresentationExportFilterGroupName ( ) : string Get the representation export filter group name
process ( &$submissions ) : DOMDocument
setIncludeSubmissionsNode ( boolean $includeSubmissionsNode ) Sets a flag to always include the node, even if there may only be one submission.

Method Details

__construct() public méthode

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

_getControlledVocabulariesMappings() public méthode

Get controlled vocabularies parent node name to DAO, get function and item node name mapping.

addAuthors() public méthode

Add the author metadata for a submission to its DOM element.
public addAuthors ( $doc, $submissionNode, $submission )
$doc DOMDocument
$submissionNode DOMElement
$submission Submission

addControlledVocabulary() public méthode

Add submission controlled vocabulary to its DOM element.
public addControlledVocabulary ( $doc, $submissionNode, $controlledVocabulariesNodeName, $controlledVocabularyNodeName, $controlledVocabulary )
$doc DOMDocument
$submissionNode DOMElement
$controlledVocabulariesNodeName string Parent node name
$controlledVocabularyNodeName string Item node name
$controlledVocabulary array Associative array (locale => array of items)

addFiles() public méthode

Add the submission files to its DOM element.
public addFiles ( $doc, $submissionNode, $submission )
$doc DOMDocument
$submissionNode DOMElement
$submission Submission

addIdentifiers() public méthode

Create and add identifier nodes to a submission node.
public addIdentifiers ( $doc, $submissionNode, $submission )
$doc DOMDocument
$submissionNode DOMElement
$submission Submission

addMetadata() public méthode

Add the submission metadata for a submission to its DOM element.
public addMetadata ( $doc, $submissionNode, $submission )
$doc DOMDocument
$submissionNode DOMElement
$submission Submission

addPubIdentifier() public méthode

Add a single pub ID element for a given plugin to the document.
public addPubIdentifier ( $doc, $submissionNode, $submission, $pubIdPlugin ) : DOMElement | null
$doc DOMDocument
$submissionNode DOMElement
$submission Submission
$pubIdPlugin PubIdPlugin
Résultat DOMElement | null

addRepresentations() public méthode

Add the representations of a submission to its DOM element.
public addRepresentations ( $doc, $submissionNode, $submission )
$doc DOMDocument
$submissionNode DOMElement
$submission Submission

createSubmissionNode() public méthode

Create and return a submission node.
public createSubmissionNode ( $doc, $submission ) : DOMElement
$doc DOMDocument
$submission Submission
Résultat DOMElement

getClassName() public méthode

public getClassName ( )

getIncludeSubmissionsNode() public méthode

Returnes whether to always include the node, even if there may only be one submission.
public getIncludeSubmissionsNode ( ) : boolean
Résultat boolean $includeSubmissionsNode

getRepresentationExportFilterGroupName() public méthode

Get the representation export filter group name

process() public méthode

See also: Filter::process()
public process ( &$submissions ) : DOMDocument
$submissions array Array of submissions
Résultat DOMDocument

setIncludeSubmissionsNode() public méthode

Sets a flag to always include the node, even if there may only be one submission.
public setIncludeSubmissionsNode ( boolean $includeSubmissionsNode )
$includeSubmissionsNode boolean

Property Details

$_includeSubmissionsNode public_oe property

public $_includeSubmissionsNode