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

Public Member Functions

 GenericMultiplexerFilter (&$filterGroup, $displayName=null)
 
 getClassName ()
 
 getTolerateFailures ()
 
process (&$input)
 
 setTolerateFailures ($tolerateFailures)
 
- Public Member Functions inherited from CompositeFilter
 _getCompositeSettingName ($settingName)
 
_getSubfilterSetting ($settingName)
 
 _resolveCompositeSettingName ($compositeSettingName)
 
 addFilter (&$filter)
 
 CompositeFilter (&$filterGroup, $displayName=null)
 
 getData ($key, $locale=null)
 
getFilter ($seq)
 
getFilters ()
 
 getInternalSettings ()
 
 getLocalizedSettingNames ()
 
getSetting ($settingName)
 
 getSettingNames ()
 
getSettings ()
 
 getSettingsMapping ()
 
 getSettingsMappingForSetting ($settingName)
 
 hasData ($key, $locale=null)
 
 hasSettings ()
 
 isCompatibleWithRuntimeEnvironment ()
 
 setData ($key, $value, $locale=null)
 
 setSettingsMapping ($settingsMapping)
 
- 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

A generic filter that is configured with a number of equal type filters. It takes the input argument, applies all given filters to it and returns an array of outputs as a result.

The result can then be sent to either an iterator filter or to a de-multiplexer filter.

Definition at line 23 of file GenericMultiplexerFilter.inc.php.

Member Function Documentation

GenericMultiplexerFilter::GenericMultiplexerFilter ( $filterGroup,
  $displayName = null 
)

Constructor

Parameters
$filterGroupFilterGroup
$displayNamestring

Definition at line 35 of file GenericMultiplexerFilter.inc.php.

GenericMultiplexerFilter::getClassName ( )
See Also
PersistentFilter::getClassName()

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

GenericMultiplexerFilter::getTolerateFailures ( )

Returns true when sub-filters can fail as long as at least one filter returns a result.

Returns
boolean

Definition at line 57 of file GenericMultiplexerFilter.inc.php.

Referenced by process().

& GenericMultiplexerFilter::process ( $input)
See Also
Filter::process()
Parameters
$inputmixed
Returns
array

Definition at line 81 of file GenericMultiplexerFilter.inc.php.

References Filter\addError(), CompositeFilter\getFilters(), and getTolerateFailures().

GenericMultiplexerFilter::setTolerateFailures (   $tolerateFailures)

Set to true if sub-filters can fail as long as at least one filter returns a result.

Parameters
$tolerateFailuresboolean

Definition at line 48 of file GenericMultiplexerFilter.inc.php.


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