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

Mostra file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$mapping Validator[] Mapping of namespaces to validators.

Public Methods

Method Description
__construct ( Validator[] $validatorMap )
addValidator ( string $namespace, Validator $validator = null ) Adds validator mapping.
dispatch ( DOMDocument $document ) : string[] Dispatches DOMDocument to the namespace mapped validator.

Method Details

__construct() public method

public __construct ( Validator[] $validatorMap )
$validatorMap Validator[]

addValidator() public method

Adds validator mapping.
public addValidator ( string $namespace, Validator $validator = null )
$namespace string
$validator Validator

dispatch() public method

Dispatches DOMDocument to the namespace mapped validator.
public dispatch ( DOMDocument $document ) : string[]
$document DOMDocument
return string[]

Property Details

$mapping protected_oe property

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