Class

eZ\Publish\Core\FieldType\RichText\ConverterDispatcher

class ConverterDispatcher

Dispatcher for various converters depending on the XML document namespace.

Methods

__construct(Converter[] $converterMap)

addConverter(string $namespace, Converter $converter = null)

Adds converter mapping.

DOMDocument dispatch(DOMDocument $document)

Dispatches DOMDocument to the namespace mapped converter.

Details

at line 29
public __construct(Converter[] $converterMap)

Parameters

Converter[] $converterMap

at line 42
public addConverter(string $namespace, Converter $converter = null)

Adds converter mapping.

Parameters

string $namespace
Converter $converter

at line 56
public DOMDocument dispatch(DOMDocument $document)

Dispatches DOMDocument to the namespace mapped converter.

Parameters

DOMDocument $document

Return Value

DOMDocument

Exceptions

NotFoundException