Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
NativeImportFilter Class Reference
Inheritance diagram for NativeImportFilter:
NativeImportExportFilter PersistableFilter Filter DataObject NativeXmlPKPAuthorFilter NativeXmlRepresentationFilter NativeXmlSubmissionFileFilter NativeXmlSubmissionFilter NativeXmlUserGroupFilter UserXmlPKPUserFilter NativeXmlAuthorFilter NativeXmlPublicationFormatFilter NativeXmlMonographFileFilter NativeXmlMonographFilter NativeXmlArtworkFileFilter

Public Member Functions

 getPluralElementName ()
 
 getSingularElementName ()
 
 handleElement ($node)
 
 NativeImportFilter ($filterGroup)
 
 parseLocalizedContent ($element)
 
process (&$document)
 
- Public Member Functions inherited from NativeImportExportFilter
 getDeployment ()
 
 NativeImportExportFilter ($filterGroup)
 
 setDeployment ($deployment)
 
- Public Member Functions inherited from PersistableFilter
 addSetting (&$setting)
 
 getClassName ()
 
getFilterGroup ()
 
 getInternalSettings ()
 
 getIsTemplate ()
 
 getLocalizedSettingNames ()
 
 getParentFilterId ()
 
getSetting ($settingName)
 
 getSettingNames ()
 
getSettings ()
 
 hasSetting ($settingName)
 
 hasSettings ()
 
 PersistableFilter ($filterGroup)
 
 setIsTemplate ($isTemplate)
 
 setParentFilterId ($parentFilterId)
 
- Public Member Functions inherited from Filter
 addError ($message)
 
 clearErrors ()
 
execute (&$input)
 
 Filter ($inputType, $outputType)
 
 getDisplayName ()
 
 getErrors ()
 
getInputType ()
 
getLastInput ()
 
getLastOutput ()
 
getOutputType ()
 
getRuntimeEnvironment ()
 
 getSeq ()
 
 hasErrors ()
 
 isCompatibleWithRuntimeEnvironment ()
 
process (&$input)
 
 setDisplayName ($displayName)
 
 setRuntimeEnvironment (&$runtimeEnvironment)
 
 setSeq ($seq)
 
 setTransformationType (&$inputType, &$outputType)
 
 supports (&$input, &$output)
 
 supportsAsInput (&$input)
 
- Public Member Functions inherited from DataObject
 addSupportedMetadataAdapter ($metadataAdapter)
 
 DataObject ()
 
 extractMetadata ($metadataSchema)
 
 getAdditionalMetadataFieldNames ()
 
getAllData ()
 
getData ($key, $locale=null)
 
 getHasLoadableAdapters ()
 
 getId ()
 
 getLocaleMetadataFieldNames ()
 
getLocalizedData ($key)
 
 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)
 
 upcastTo ($targetObject)
 

Additional Inherited Members

- Static Public Member Functions inherited from PersistableFilter
static tempGroup ($inputType, $outputType)
 
- Static Public Member Functions inherited from Filter
static supportedRuntimeEnvironmentSettings ()
 
- Public Attributes inherited from PersistableFilter
 $_settings = array()
 
- Public Attributes inherited from Filter
 $_errors = array()
 
 $_runtimeEnvironment = false
 
- Public Attributes inherited from DataObject
 $_data = array()
 
 $_extractionAdaptersLoaded = false
 
 $_hasLoadableAdapters = false
 
 $_injectionAdaptersLoaded = false
 
 $_metadataExtractionAdapters = array()
 
 $_metadataInjectionAdapters = array()
 

Detailed Description

Base class that converts a Native XML document to a DataObject.

Definition at line 18 of file NativeImportFilter.inc.php.

Member Function Documentation

NativeImportFilter::getPluralElementName ( )

Return the plural element name

Returns
string

Definition at line 67 of file NativeImportFilter.inc.php.

NativeImportFilter::getSingularElementName ( )

Get the singular element name

Returns
string

Definition at line 75 of file NativeImportFilter.inc.php.

NativeImportFilter::handleElement (   $node)

Handle a singular element import

Parameters
$nodeDOMElement

Definition at line 83 of file NativeImportFilter.inc.php.

Referenced by process().

NativeImportFilter::NativeImportFilter (   $filterGroup)

Constructor

Parameters
$filterGroupFilterGroup

Definition at line 23 of file NativeImportFilter.inc.php.

NativeImportFilter::parseLocalizedContent (   $element)

Parse a localized element

Parameters
$elementDOMElement
Returns
array Array("locale_KEY", "Localized Text")

Definition at line 92 of file NativeImportFilter.inc.php.

Referenced by NativeXmlSubmissionFilter\handleChildElement(), and NativeXmlUserGroupFilter\handleElement().

& NativeImportFilter::process ( $document)
See Also
Filter::process()
Parameters
$documentDOMDocument|string
Returns
array Array of imported documents

Definition at line 36 of file NativeImportFilter.inc.php.

References NativeImportExportFilter\getDeployment(), and handleElement().


The documentation for this class was generated from the following file: