Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
MetadataDescriptionDummyAdapter Class Reference
Inheritance diagram for MetadataDescriptionDummyAdapter:
MetadataDataObjectAdapter PersistableFilter Filter DataObject

Public Member Functions

extractMetadataFromDataObject (&$sourceMetadataDescription)
 
 getClassName ()
 
 getMetadataFieldNames ($translated=true)
 
injectMetadataIntoDataObject (&$sourceMetadataDescription, &$targetMetadataDescription)
 
 MetadataDescriptionDummyAdapter (&$metadataDescription)
 
- Public Member Functions inherited from MetadataDataObjectAdapter
 addLocalizedStatements (&$metadataDescription, $propertyName, $localizedValues)
 
extractMetadataFromDataObject (&$sourceDataObject)
 
 extractUnmappedDataObjectMetadataFields (&$dataObject, &$metadataDescription)
 
 getAssocType ()
 
 getDataObjectClass ()
 
 getDataObjectMetadataFieldNames ($translated=true)
 
 getDataObjectName ()
 
 getMetadataFieldNames ($translated=true)
 
 getMetadataNamespace ()
 
getMetadataSchema ()
 
 getMetadataSchemaName ()
 
getTargetDataObject ()
 
injectMetadataIntoDataObject (&$metadataDescription, &$targetDataObject)
 
 injectUnmappedDataObjectMetadataFields (&$metadataDescription, &$dataObject)
 
instantiateDataObject ()
 
instantiateMetadataDescription ()
 
 MetadataDataObjectAdapter (&$filterGroup)
 
process (&$input)
 
 setTargetDataObject (&$targetDataObject)
 
- 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)
 
 tempGroup ($inputType, $outputType)
 
- 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)
 
 supportedRuntimeEnvironmentSettings ()
 
 supports (&$input, &$output)
 
 supportsAsInput (&$input)
 
- Public Member Functions inherited from DataObject
 addSupportedMetadataAdapter (&$metadataAdapter)
 
 DataObject ($callHooks=true)
 
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

- Public Attributes inherited from DataObject
 $_data = array()
 

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)
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 85 of file MetadataDescriptionDummyAdapter.inc.php.

References MetadataDataObjectAdapter\getMetadataSchema().

& 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)

Constructor

Parameters
$metadataDescriptionMetadataDescription

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

References Filter\setDisplayName(), and PersistableFilter\tempGroup().


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