ezcDbSchemaValidator validates schemas for correctness.
Example:
Source for this file: /DatabaseSchema/src/validator.php
Version: | //autogentag// |
public static array(string) |
validate(
$schema
)
Validates the ezcDbSchema object $schema with the recorded validator classes. |
Validates the ezcDbSchema object $schema with the recorded validator classes.
This method loops over all the known validator classes and calls their validate() method with the $schema as argument. It returns an array containing validation errors as strings.
Name | Type | Description |
---|---|---|
$schema |
ezcDbSchema |