Open Monograph Press
3.3.0
|
Public Member Functions | |
__construct ($filterGroup) | |
_extractAudienceRangeContent ($node, $onixDeployment, &$representation) | |
_extractExtentContent ($node, $onixDeployment, &$representation) | |
_extractMeasureContent ($node, $onixDeployment, &$representation) | |
_extractTextFromNode ($node, $onixDeployment, $nodeName) | |
_processFileRef ($node, $deployment, &$representation) | |
_processProductNode ($node, $deployment, &$representation) | |
getClassName () | |
getPluralElementName () | |
getSingularElementName () | |
handleElement ($node) | |
![]() | |
parseIdentifier ($element, $representation) | |
![]() | |
parseLocalizedContent ($element) | |
& | process (&$document) |
![]() | |
getDeployment () | |
setDeployment ($deployment) | |
![]() | |
addSetting ($setting) | |
getFilterGroup () | |
getInternalSettings () | |
getIsTemplate () | |
getLocalizedSettingNames () | |
getParentFilterId () | |
getSetting ($settingName) | |
getSettingNames () | |
& | getSettings () |
hasSetting ($settingName) | |
hasSettings () | |
setIsTemplate ($isTemplate) | |
setParentFilterId ($parentFilterId) | |
![]() | |
__construct ($inputType, $outputType) | |
addError ($message) | |
clearErrors () | |
& | execute (&$input, $returnErrors=false) |
getDisplayName () | |
getErrors () | |
& | getInputType () |
& | getLastInput () |
& | getLastOutput () |
& | getOutputType () |
& | getRuntimeEnvironment () |
getSequence () | |
hasErrors () | |
isCompatibleWithRuntimeEnvironment () | |
setDisplayName ($displayName) | |
setRuntimeEnvironment (&$runtimeEnvironment) | |
setSequence ($seq) | |
setTransformationType (&$inputType, &$outputType) | |
supports (&$input, &$output) | |
supportsAsInput (&$input) | |
![]() | |
__construct () | |
addSupportedMetadataAdapter ($metadataAdapter) | |
extractMetadata ($metadataSchema) | |
getAdditionalMetadataFieldNames () | |
& | getAllData () |
getDAO () | |
& | getData ($key, $locale=null) |
getHasLoadableAdapters () | |
getId () | |
getLocaleMetadataFieldNames () | |
getLocalizedData ($key, $preferredLocale=null) | |
getMetadataFieldNames ($translated=true) | |
getSetMetadataFieldNames ($translated=true) | |
getSupportedExtractionAdapters () | |
getSupportedInjectionAdapters () | |
getSupportedMetadataSchemas () | |
hasData ($key, $locale=null) | |
injectMetadata ($metadataDescription) | |
removeSupportedMetadataAdapter ($metadataSchemaName) | |
setAllData (&$data) | |
setData ($key, $value, $locale=null) | |
setHasLoadableAdapters ($hasLoadableAdapters) | |
setId ($id) | |
unsetData ($key, $locale=null) | |
upcastTo ($targetObject) | |
Additional Inherited Members | |
![]() | |
static | tempGroup ($inputType, $outputType) |
![]() | |
static | supportedRuntimeEnvironmentSettings () |
![]() | |
$_deployment | |
![]() | |
$_filterGroup | |
$_settings = array() | |
![]() | |
$_errors = array() | |
$_input | |
$_inputType | |
$_output | |
$_outputType | |
$_runtimeEnvironment = false | |
![]() | |
$_data = array() | |
$_extractionAdaptersLoaded = false | |
$_hasLoadableAdapters = false | |
$_injectionAdaptersLoaded = false | |
$_metadataExtractionAdapters = array() | |
$_metadataInjectionAdapters = array() | |
Class that converts a Native XML document to a set of publication formats.
Definition at line 18 of file NativeXmlPublicationFormatFilter.inc.php.
NativeXmlPublicationFormatFilter::__construct | ( | $filterGroup | ) |
Constructor
$filterGroup | FilterGroup |
Reimplemented from NativeXmlRepresentationFilter.
Definition at line 23 of file NativeXmlPublicationFormatFilter.inc.php.
NativeXmlPublicationFormatFilter::_extractAudienceRangeContent | ( | $node, | |
$onixDeployment, | |||
& | $representation | ||
) |
Extracts the AudienceRange elements, which vary depending on whether a submission defines a specific range, or a to/from pair.
$node | DOMElement | |
$onixDeployment | Onix30ExportDeployment | |
PublicationFormat | $representation |
Definition at line 407 of file NativeXmlPublicationFormatFilter.inc.php.
Referenced by _processProductNode().
NativeXmlPublicationFormatFilter::_extractExtentContent | ( | $node, | |
$onixDeployment, | |||
& | $representation | ||
) |
Extracts the elements of the Extent nodes.
$node | DOMElement | |
$onixDeployment | Onix30ExportDeployment | |
PublicationFormat | $representation |
Definition at line 342 of file NativeXmlPublicationFormatFilter.inc.php.
References _extractTextFromNode().
Referenced by _processProductNode().
NativeXmlPublicationFormatFilter::_extractMeasureContent | ( | $node, | |
$onixDeployment, | |||
& | $representation | ||
) |
Extracts the elements of the Measure nodes.
$node | DOMElement | |
$onixDeployment | Onix30ExportDeployment | |
PublicationFormat | $representation |
Definition at line 370 of file NativeXmlPublicationFormatFilter.inc.php.
References _extractTextFromNode().
Referenced by _processProductNode().
NativeXmlPublicationFormatFilter::_extractTextFromNode | ( | $node, | |
$onixDeployment, | |||
$nodeName | |||
) |
Extracts the text content from a node.
$node | DOMElement |
$onixDeployment | Onix30ExportDeployment |
$nodeName | String the name of the node. |
Definition at line 327 of file NativeXmlPublicationFormatFilter.inc.php.
Referenced by _extractExtentContent(), _extractMeasureContent(), and _processProductNode().
NativeXmlPublicationFormatFilter::_processFileRef | ( | $node, | |
$deployment, | |||
& | $representation | ||
) |
Process the self_file_ref node found inside the publication_format node.
$node | DOMElement |
$deployment | Onix30ExportDeployment |
$representation | PublicationFormat |
Definition at line 99 of file NativeXmlPublicationFormatFilter.inc.php.
References DAORegistry\getDAO().
Referenced by handleElement().
NativeXmlPublicationFormatFilter::_processProductNode | ( | $node, | |
$deployment, | |||
& | $representation | ||
) |
Process the Product node found inside the publication_format node. There may be many of these.
$node | DOMElement |
$representation | PublicationFormat |
Definition at line 118 of file NativeXmlPublicationFormatFilter.inc.php.
References _extractAudienceRangeContent(), _extractExtentContent(), _extractMeasureContent(), _extractTextFromNode(), PKPServices\get(), PKPApplication\get(), and DAORegistry\getDAO().
Referenced by handleElement().
NativeXmlPublicationFormatFilter::getClassName | ( | ) |
Return the fully qualified class name of the filter class. This information must be persisted when saving a filter so that the filter can later be reconstructed from the information in the database.
(This must be hard coded by sub-classes for PHP4 compatibility. PHP4 always returns class names lowercase which we cannot tolerate as we need this path to find the class on case sensitive file systems.)
Reimplemented from NativeXmlRepresentationFilter.
Definition at line 52 of file NativeXmlPublicationFormatFilter.inc.php.
NativeXmlPublicationFormatFilter::getPluralElementName | ( | ) |
Return the plural element name
Reimplemented from NativeImportFilter.
Definition at line 34 of file NativeXmlPublicationFormatFilter.inc.php.
NativeXmlPublicationFormatFilter::getSingularElementName | ( | ) |
Get the singular element name
Reimplemented from NativeImportFilter.
Definition at line 42 of file NativeXmlPublicationFormatFilter.inc.php.
NativeXmlPublicationFormatFilter::handleElement | ( | $node | ) |
Handle a submission element
$node | DOMElement |
Reimplemented from NativeXmlRepresentationFilter.
Definition at line 62 of file NativeXmlPublicationFormatFilter.inc.php.
References _processFileRef(), _processProductNode(), NativeImportExportFilter\getDeployment(), and Application\getRepresentationDAO().