Validator
in package
Read onlyYes
FinalYes
Checks a document, or an indexed file, against the profile of its version: every rule sees the records one at a time, in order. The report starts with the syntax diagnostics found while reading (KV1xxx); the document itself is never changed. The plausibility checks (KV5xxx) run only when the options ask for them.
Table of Contents
Methods
- __construct() : mixed
- validate() : ValidationReport
- An indexed file is read once, record by record; the records a check looks up are read from it again unless cached.
Methods
__construct()
public
__construct() : mixed
validate()
An indexed file is read once, record by record; the records a check looks up are read from it again unless cached.
public
validate(Document|IndexedDocument $document[, ValidationOptions $options = new ValidationOptions() ]) : ValidationReport
Parameters
- $document : Document|IndexedDocument
- $options : ValidationOptions = new ValidationOptions()