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

Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$mapping Validator[] Mapping of namespaces to validators.

Méthodes publiques

Méthode 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 méthode

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

addValidator() public méthode

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

dispatch() public méthode

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

Property Details

$mapping protected_oe property

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