Path

ez components / documentation / api reference / 2008.2.1 / databaseschema


eZ Components 2008.2.1

DatabaseSchema: ezcDbSchemaIndexFieldsValidator

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcDbSchemaIndexFieldsValidator

ezcDbSchemaIndexFieldsValidator validates whether fields used in indexes exist. [source]

Method Summary

public static array(string) validate( $schema )
Validates if all the fields used in all indexes exist.

Methods

validate

array(string) validate( ezcDbSchema $schema )
Validates if all the fields used in all indexes exist.
This method loops over all the fields in the indexes of each table and checks whether the fields that is used in an index is also defined in the table definition. It will return an array containing error strings for each non-supported type that it finds.

Parameters

Name Type Description
$schema ezcDbSchema  

Last updated: Mon, 09 Feb 2009