Class: Doctrine_Import_Schema
Source Location: /Doctrine/Import/Schema.phpClass Doctrine_Import_Schema
Class Overview
class Doctrine_Import_Schema Different methods to import a XML schema. The logic behind using two different methods is simple. Some people will like the idea of producing Doctrine_Record objects directly, which is totally fine. But in fast and growing application, table definitions tend to be a little bit more volatile. importArr() can be used to output a table definition in a PHP file. This file can then be stored independantly from the object itself. Located in /Doctrine/Import/Schema.php [line 40] Author(s):
Information Tags:
|
[ Top ]
Direct descendents
Child Class | Description |
---|---|
Doctrine_Import_Schema_Xml | class Doctrine_Import_Xml |
Doctrine_Import_Schema_Yml | class Doctrine_Import_Schema_Yml |
[ Top ]
Method Summary
void | importSchema() | importSchema |
void | parse() | parse |
void | parseSchema() | Parse the schema and return it in an array |
[ Top ]
Methods
importSchema [line 72]
|
importSchema
A method to import a Schema and translate it into a Doctrine_Record object
Parameters:string | $schema: | The file containing the XML schema |
string | $directory: | The directory where the Doctrine_Record class will be written |
API Tags:
Access: | public |
[ Top ]
parse [line 52]
|
parse
Function to do the actual parsing of the file
Parameters:string | $schema: |
API Tags:
Abstract: |
Information Tags:
Author: | Jonathan H. Wage |
Redefined in descendants as:
[ Top ]
parseSchema [line 60]
|
Parse the schema and return it in an array
Parameters:string | $schema: |
API Tags:
Abstract: | |
Access: | public |
Redefined in descendants as:
- Doctrine_Import_Schema_Xml::parseSchema() : parseSchema
- Doctrine_Import_Schema_Yml::parseSchema() : parseSchema
[ Top ]