Свойство | Тип | Описание | |
---|---|---|---|
$schemas | string[] | Paths to the schema files. |
Метод | Описание | |
---|---|---|
__construct ( array $schemas ) | ||
validate ( DOMDocument $document ) : string[] | Performs validation on given $document using injected schema files and returns validation errors. |
Метод | Описание | |
---|---|---|
formatSVRLFailure ( DOMElement $failedAssert ) : string | Returns SVRL assertion failure as a string. | |
schematronValidate ( DOMDocument $document, string $filename ) : string[] | Validates given $document using XSLT stylesheet converted from ISO Schematron schema and returns an array or error messages. | |
validateBySchema ( DOMDocument $document, string $schema ) : string[] | Performs validation on given $document using given $schema file and returns validation errors. |
public __construct ( array $schemas ) | ||
$schemas | array | Paths to schema files to use for validation |
protected formatSVRLFailure ( DOMElement $failedAssert ) : string | ||
$failedAssert | DOMElement | |
Результат | string |
protected schematronValidate ( DOMDocument $document, string $filename ) : string[] | ||
$document | DOMDocument | |
$filename | string | |
Результат | string[] |
public validate ( DOMDocument $document ) : string[] | ||
$document | DOMDocument | |
Результат | string[] | An array of validation errors |
protected validateBySchema ( DOMDocument $document, string $schema ) : string[] | ||
$document | DOMDocument | |
$schema | string | |
Результат | string[] |