Propel 2 API
Class

Propel\Generator\Util\SchemaValidator

class SchemaValidator

Service class for validating XML schemas.

Only implements validation rules that cannot be implemented in XSD.

Methods

__construct(Schema $schema)

boolean validate()

array getErrors()

Returns the list of error messages

Details

at line 36
public __construct(Schema $schema)

Parameters

Schema $schema

at line 44
public boolean validate()

Return Value

boolean true if valid, false otherwise

at line 103
public array getErrors()

Returns the list of error messages

Return Value

array