ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:parseschemafile

This is an old revision of the document!


parseSchemaFile

See Also

extractSchema()

Syntax
array parseSchemaFile (
  mixed $filename,
  optional bool $returnSchema = FALSE    )

Loads an XML schema from a file and converts it to SQL.

Call this method to load the specified schema from a file (see the DTD for the proper format) and generate the SQL necessary to create the database described by the schema.

If the optional parameter $returnSchema is set to true, then the schema is returned rather than the SL statements.

In order to actually process the SQL statements, the returned array must b passed into the executeSqlArray() method

v5/axmls/parseschemafile.1450319709.txt.gz · Last modified: 2017/04/21 11:22 (external edit)