Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
MetadataDescriptionDummyAdapter Class Reference

Inherits MetadataDataObjectAdapter.

Public Member Functions

 extractMetadataFromDataObject ($sourceMetadataDescription)
 
 getClassName ()
 
 getMetadataFieldNames ($translated=true)
 
injectMetadataIntoDataObject (&$sourceMetadataDescription, &$targetMetadataDescription)
 
 MetadataDescriptionDummyAdapter (&$metadataDescription, $mode=null)
 

Detailed Description

Class that simulates a metadata adapter for metadata description object for direct metadata description persistence.

See Also
MetadataDescription

Definition at line 20 of file MetadataDescriptionDummyAdapter.inc.php.

Member Function Documentation

MetadataDescriptionDummyAdapter::extractMetadataFromDataObject (   $sourceMetadataDescription)
See Also
MetadataDataObjectAdapter::extractMetadataFromDataObject()
Parameters
$sourceMetadataDescriptionMetadataDescription
Returns
MetadataDescription

Definition at line 68 of file MetadataDescriptionDummyAdapter.inc.php.

MetadataDescriptionDummyAdapter::getClassName ( )
MetadataDescriptionDummyAdapter::getMetadataFieldNames (   $translated = true)

We override the standard implementation so that meta-data fields will be persisted without namespace prefix. This is ok as meta-data descriptions always only have meta-data from one namespace.

Parameters
$translatedboolean if true, return localized field names, otherwise return additional field names.
Returns
array an array of field names to be persisted.

Definition at line 84 of file MetadataDescriptionDummyAdapter.inc.php.

& MetadataDescriptionDummyAdapter::injectMetadataIntoDataObject ( $sourceMetadataDescription,
$targetMetadataDescription 
)
See Also
MetadataDataObjectAdapter::injectMetadataIntoDataObject()
Parameters
$sourceMetadataDescriptionMetadataDescription
$targetMetadataDescriptionMetadataDescription
Returns
MetadataDescription

Definition at line 56 of file MetadataDescriptionDummyAdapter.inc.php.

MetadataDescriptionDummyAdapter::MetadataDescriptionDummyAdapter ( $metadataDescription,
  $mode = null 
)

Constructor

Parameters
$metadataDescriptionMetadataDescription

Definition at line 26 of file MetadataDescriptionDummyAdapter.inc.php.

References PersistableFilter\tempGroup().


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