PHP Class NativeImportFilter, pkp-lib

Inheritance: extends NativeImportExportFilter
ファイルを表示 Open project: pkp/pkp-lib Class Usage Examples

Public Methods

Method Description
__construct ( $filterGroup ) Constructor
getPluralElementName ( ) : string Return the plural element name
getSingularElementName ( ) : string Get the singular element name
handleElement ( $node ) Handle a singular element import
parseLocalizedContent ( $element ) : array Parse a localized element
process ( &$document ) : array

Method Details

__construct() public method

Constructor
public __construct ( $filterGroup )
$filterGroup FilterGroup

getPluralElementName() public method

Return the plural element name
public getPluralElementName ( ) : string
return string

getSingularElementName() public method

Get the singular element name
public getSingularElementName ( ) : string
return string

handleElement() public method

Handle a singular element import
public handleElement ( $node )
$node DOMElement

parseLocalizedContent() public method

Parse a localized element
public parseLocalizedContent ( $element ) : array
$element DOMElement
return array Array("locale_KEY", "Localized Text")

process() public method

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