PHP Class OAIMetadataFormat, pkp-lib

Used to generated metadata XML according to a specified schema.
ファイルを表示 Open project: pkp/pkp-lib

Public Properties

Property Type Description
$namespace XML namespace
$prefix metadata prefix
$schema XML schema

Public Methods

Method Description
OAIMetadataFormat ( $prefix, $schema, $namespace ) Constructor.
getLocalizedData ( $data, $locale )
stripAssocArray ( $values ) : array Recursively strip HTML from a (multidimensional) array.
toXml ( $record, $format = null ) : string Retrieve XML-formatted metadata for the specified record.

Method Details

OAIMetadataFormat() public method

Constructor.
public OAIMetadataFormat ( $prefix, $schema, $namespace )

getLocalizedData() public method

public getLocalizedData ( $data, $locale )

stripAssocArray() public method

Recursively strip HTML from a (multidimensional) array.
public stripAssocArray ( $values ) : array
$values array
return array the cleansed array

toXml() public method

Retrieve XML-formatted metadata for the specified record.
public toXml ( $record, $format = null ) : string
$record OAIRecord
$format string OAI metadata prefix
return string

Property Details

$namespace public_oe property

XML namespace
public $namespace

$prefix public_oe property

metadata prefix
public $prefix

$schema public_oe property

XML schema
public $schema