Path

ez components / documentation / api reference / 2009.1.1 / databaseschema


eZ Components 2009.1.1

DatabaseSchema: ezcDbSchemaTypesValidator

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

Class: ezcDbSchemaTypesValidator

ezcDbSchemaTypesValidator validates field definition types. [source]

Method Summary

public static array(string) validate( $schema )
Validates if all the types used in the $schema are supported.

Methods

validate

array(string) validate( ezcDbSchema $schema )
Validates if all the types used in the $schema are supported.
This method loops over all the fields in a table and checks whether the type that is used for each field is supported. 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, 27 Jul 2009