Class XmlSchemaGenerator

Description

Takes XML config info and generates a schema (a collection of databases each containing a collection of tables each containing a collection of columns)

  • author: Anthony Bush
  • todo: Write this class...

Located in /schema_generator/xml/XmlSchemaGenerator.class.php (line 11)

SchemaGenerator
   |
   --XmlSchemaGenerator
Variable Summary
Method Summary
void __construct ([mixed $config = array()])
void initConfig ( $config)
void loadSchema ()
Variables
XmlSchemaGeneratorConfig $config = null (line 18)

Configuration object for this class

  • access: protected
Schema $schema = null (line 25)

Schema object (mostly likely an instanceof Schema)

  • access: protected
Methods
Constructor __construct (line 33)

Construct with optional configuration parameters.

  • access: public
void __construct ([mixed $config = array()])
  • mixed $config: - either an array of configuration variables or a pre-constructed XmlSchemaGeneratorConfig object.
generateSchema (line 71)

Generate/load the schema and return it.

  • author: Anthony Bush
  • access: public
Schema generateSchema ()

Redefinition of:
SchemaGenerator::generateSchema()
initConfig (line 44)

Initialize the configuration object given an array or pre-constructed configuration object.

  • throws: Exception
  • access: public
void initConfig ( $config)
  • $config
loadSchema (line 61)

Loads the schema into memory according to the config (e.g. only includes databases and tables the config allows).

  • todo: open an XML file and generate schema in memory
  • access: public
void loadSchema ()

Inherited Methods

Inherited From SchemaGenerator

SchemaGenerator::generateSchema()

Documentation generated on Wed, 12 Nov 2008 21:56:22 -0600 by phpDocumentor 1.4.0