PHP Class eZ\Publish\Core\FieldType\RichText\ConverterDispatcher

ファイルを表示 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$mapping eZ\Publish\Core\FieldType\RichText\Converter[] Mapping of namespaces to converters.

Public Methods

Method Description
__construct ( eZ\Publish\Core\FieldType\RichText\Converter[] $converterMap )
addConverter ( string $namespace, Converter $converter = null ) Adds converter mapping.
dispatch ( DOMDocument $document ) : DOMDocument Dispatches DOMDocument to the namespace mapped converter.

Method Details

__construct() public method

public __construct ( eZ\Publish\Core\FieldType\RichText\Converter[] $converterMap )
$converterMap eZ\Publish\Core\FieldType\RichText\Converter[]

addConverter() public method

Adds converter mapping.
public addConverter ( string $namespace, Converter $converter = null )
$namespace string
$converter Converter

dispatch() public method

Dispatches DOMDocument to the namespace mapped converter.
public dispatch ( DOMDocument $document ) : DOMDocument
$document DOMDocument
return DOMDocument

Property Details

$mapping protected_oe property

Mapping of namespaces to converters.
protected Converter[],eZ\Publish\Core\FieldType\RichText $mapping
return eZ\Publish\Core\FieldType\RichText\Converter[]