Open Journal Systems  3.3.0
MetadataDescriptionDummyAdapter Class Reference
Inheritance diagram for MetadataDescriptionDummyAdapter:
MetadataDataObjectAdapter PersistableFilter Filter DataObject

Public Member Functions

 __construct (&$metadataDescription, $mode=null)
 
 extractMetadataFromDataObject (&$sourceMetadataDescription)
 
 getClassName ()
 
 getMetadataFieldNames ($translated=true)
 
injectMetadataIntoDataObject (&$sourceMetadataDescription, &$targetMetadataDescription)
 
- Public Member Functions inherited from MetadataDataObjectAdapter
 __construct ($filterGroup, $mode=null)
 
 addLocalizedStatements (&$metadataDescription, $propertyName, $localizedValues)
 
 extractUnmappedDataObjectMetadataFields (&$dataObject, &$metadataDescription)
 
 getAssocType ()
 
 getDataObjectClass ()
 
 getDataObjectMetadataFieldNames ($translated=true)
 
 getDataObjectName ()
 
 getMetadataNamespace ()
 
getMetadataSchema ()
 
 getMetadataSchemaName ()
 
 getMode ()
 
getTargetDataObject ()
 
 injectUnmappedDataObjectMetadataFields (&$metadataDescription, &$dataObject)
 
instantiateDataObject ()
 
instantiateMetadataDescription ()
 
process (&$input)
 
 setTargetDataObject (&$targetDataObject)
 
- Public Member Functions inherited from PersistableFilter
 __construct ($filterGroup)
 
 addSetting ($setting)
 
 getFilterGroup ()
 
 getInternalSettings ()
 
 getIsTemplate ()
 
 getLocalizedSettingNames ()
 
 getParentFilterId ()
 
 getSetting ($settingName)
 
 getSettingNames ()
 
getSettings ()
 
 hasSetting ($settingName)
 
 hasSettings ()
 
 setIsTemplate ($isTemplate)
 
 setParentFilterId ($parentFilterId)
 
- Public Member Functions inherited from Filter
 addError ($message)
 
 clearErrors ()
 
execute (&$input, $returnErrors=false)
 
 getDisplayName ()
 
 getErrors ()
 
getInputType ()
 
getLastInput ()
 
getLastOutput ()
 
getOutputType ()
 
getRuntimeEnvironment ()
 
 getSequence ()
 
 hasErrors ()
 
 isCompatibleWithRuntimeEnvironment ()
 
 setDisplayName ($displayName)
 
 setRuntimeEnvironment (&$runtimeEnvironment)
 
 setSequence ($seq)
 
 setTransformationType (&$inputType, &$outputType)
 
 supports (&$input, &$output)
 
 supportsAsInput (&$input)
 
- Public Member Functions inherited from DataObject
 __construct ()
 
 addSupportedMetadataAdapter ($metadataAdapter)
 
 extractMetadata ($metadataSchema)
 
 getAdditionalMetadataFieldNames ()
 
getAllData ()
 
 getDAO ()
 
getData ($key, $locale=null)
 
 getHasLoadableAdapters ()
 
 getId ()
 
 getLocaleMetadataFieldNames ()
 
 getLocalizedData ($key, $preferredLocale=null)
 
 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)
 
 unsetData ($key, $locale=null)
 
 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 ()
 
- Data Fields inherited from MetadataDataObjectAdapter
 $_assocType
 
 $_dataObjectClass
 
 $_dataObjectName
 
 $_metadataFieldNames
 
 $_metadataSchema
 
 $_metadataSchemaName
 
 $_mode
 
- Data Fields inherited from PersistableFilter
 $_filterGroup
 
 $_settings = array()
 
- Data Fields inherited from Filter
 $_errors = array()
 
 $_input
 
 $_inputType
 
 $_output
 
 $_outputType
 
 $_runtimeEnvironment = false
 
- Data Fields inherited from DataObject
 $_data = array()
 
 $_extractionAdaptersLoaded = false
 
 $_hasLoadableAdapters = false
 
 $_injectionAdaptersLoaded = false
 
 $_metadataExtractionAdapters = array()
 
 $_metadataInjectionAdapters = 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.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

Parameters
$metadataDescriptionMetadataDescription

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

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

Member Function Documentation

◆ extractMetadataFromDataObject()

MetadataDescriptionDummyAdapter::extractMetadataFromDataObject ( $sourceMetadataDescription)

◆ getClassName()

MetadataDescriptionDummyAdapter::getClassName ( )
See also
PersistableFilter::getClassName()

Reimplemented from PersistableFilter.

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

◆ getMetadataFieldNames()

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.

Reimplemented from MetadataDataObjectAdapter.

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

References MetadataDataObjectAdapter\getMetadataSchema().

◆ injectMetadataIntoDataObject()

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

Reimplemented from MetadataDataObjectAdapter.

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


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