class SchemaReader
A class that is used to parse an input xml schema file and creates a Schema PHP object.
Constants
DEBUG |
enables debug output |
Methods
__construct(PlatformInterface $defaultPlatform = null, string $defaultPackage = null, string $encoding = 'iso-8859-1')
Creates a new instance for the specified database type. |
||
setGeneratorConfig(GeneratorConfigInterface $generatorConfig)
Set the Schema generator configuration |
||
Schema |
parseFile(string $xmlFile)
Parses a XML input file and returns a newly created and populated Schema structure. |
|
Schema |
parseString(string $xmlString, string $xmlFile = null)
Parses a XML input string and returns a newly created and populated Schema structure. |
|
startElement($parser, $name, $attributes) | ||
endElement($parser, $name) |
Details
at line 77
public
__construct(PlatformInterface $defaultPlatform = null, string $defaultPackage = null, string $encoding = 'iso-8859-1')
Creates a new instance for the specified database type.
at line 90
public
setGeneratorConfig(GeneratorConfigInterface $generatorConfig)
Set the Schema generator configuration
at line 102
public Schema
parseFile(string $xmlFile)
Parses a XML input file and returns a newly created and populated Schema structure.
at line 120
public Schema
parseString(string $xmlString, string $xmlFile = null)
Parses a XML input string and returns a newly created and populated Schema structure.