xPDOGeneratorA service for reverse and forward engineering xPDO domain models.
This service utilizes an xPDOManager instance to generate class stub and meta-data map files from a provided vanilla XML schema of a database structure. It can also reverse-engineer XML schemas from an existing database.
Located in /xpdo/om/xpdogenerator.class.php (line 40)
| Class | Description |
|---|---|
xPDOGenerator_mysql
|
An extension for generating xPDOObject class and map files for MySQL. |
xPDOGenerator_sqlite
|
An extension for generating xPDOObject class and map files for SQLite. |
xPDOGenerator_sqlsrv
|
An extension for generating xPDOObject class and map files for sqlsrv. |
array
$classes
= array () (line 93)
string
$className
= '' (line 102)
string
$classTemplate
= '' (line 72)
string
$fieldKey
= '' (line 106)
string
$indexName
= '' (line 110)
xPDOManager
$manager
= null (line 45)
array
$map
= array () (line 97)
string
$mapFooter
= '' (line 85)
string
$mapHeader
= '' (line 81)
array
$model
= array () (line 89)
string
$outputDir
= '' (line 58)
string
$platformTemplate
= '' (line 77)
string
$schemaContent
= '' (line 67)
string
$schemaFile
= '' (line 62)
xPDOSchemaManager
$schemaManager
= null (line 49)
xmlParser
$xmlParser
= null (line 53)
Constructor __construct (line 119)
Constructor
compile (line 615)
Compile the packages into a single file for quicker loading.
getClassName (line 153)
Gets a class name from a table name by splitting the string by _ and capitalizing each token.
getClassPlatformTemplate (line 638)
Return the class platform template for the class files.
getClassTemplate (line 623)
Return the class template for the class files.
getDefault (line 173)
Format the passed default value as an XML attribute.
Override this in different PDO driver implementations if necessary.
getIndex (line 189)
Format the passed database index value as an XML attribute.
getMapFooter (line 668)
Gets the map footer template.
getMapHeader (line 654)
Gets the map header template.
getTableName (line 135)
Formats a class name to a specific value, stripping the prefix if specified.
outputClasses (line 454)
Write the generated class files to the specified path.
outputMaps (line 554)
Write the generated class maps to the specified path.
parseSchema (line 201)
Parses an XPDO XML schema and generates classes and map files from it.
_handleCData (line 444)
Handles the XML CDATA tags
_handleCloseElement (line 437)
Handles the closing of XML tags.
_handleOpenElement (line 254)
Handles formatting of the open XML element.
Documentation generated on Fri, 17 Jun 2011 10:04:07 -0600 by phpDocumentor 1.4.3