Documentation TYPO3 par Ameos |
Public Member Functions | |
adoSchema (&$db) | |
SetUpgradeMethod ($method= '') | |
ExecuteInline ($mode=NULL) | |
ContinueOnError ($mode=NULL) | |
ParseSchema ($filename, $returnSchema=FALSE) | |
ParseSchemaFile ($filename, $returnSchema=FALSE) | |
ParseSchemaString ($xmlstring, $returnSchema=FALSE) | |
RemoveSchema ($filename, $returnSchema=FALSE) | |
RemoveSchemaString ($schema, $returnSchema=FALSE) | |
ExecuteSchema ($sqlArray=NULL, $continueOnErr=NULL) | |
PrintSQL ($format= 'NONE') | |
SaveSQL ($filename= './schema.sql') | |
& | create_parser () |
_tag_open (&$parser, $tag, $attributes) | |
_tag_cdata (&$parser, $cdata) | |
_tag_close (&$parser, $tag) | |
ConvertSchemaString ($schema, $newVersion=NULL, $newFile=NULL) | |
_file_get_contents ($path) | |
ConvertSchemaFile ($filename, $newVersion=NULL, $newFile=NULL) | |
TransformSchema ($schema, $xsl, $schematype='string') | |
xslt_error_handler ($parser, $errno, $level, $fields) | |
SchemaFileVersion ($filename) | |
SchemaStringVersion ($xmlstring) | |
ExtractSchema ($data=FALSE) | |
SetPrefix ($prefix= '', $underscore=TRUE) | |
prefix ($name= '') | |
supportedPlatform ($platform=NULL) | |
clearSQL () | |
addSQL ($sql=NULL) | |
getSQL ($format=NULL, $sqlArray=NULL) | |
Destroy () | |
adoSchema (&$db) | |
SetUpgradeMethod ($method= '') | |
ExistingData ($mode=NULL) | |
ExecuteInline ($mode=NULL) | |
ContinueOnError ($mode=NULL) | |
ParseSchema ($filename, $returnSchema=FALSE) | |
ParseSchemaFile ($filename, $returnSchema=FALSE) | |
ParseSchemaString ($xmlstring, $returnSchema=FALSE) | |
RemoveSchema ($filename, $returnSchema=FALSE) | |
RemoveSchemaString ($schema, $returnSchema=FALSE) | |
ExecuteSchema ($sqlArray=NULL, $continueOnErr=NULL) | |
PrintSQL ($format= 'NONE') | |
SaveSQL ($filename= './schema.sql') | |
& | create_parser () |
_tag_open (&$parser, $tag, $attributes) | |
_tag_cdata (&$parser, $cdata) | |
_tag_close (&$parser, $tag) | |
ConvertSchemaString ($schema, $newVersion=NULL, $newFile=NULL) | |
ConvertSchemaFile ($filename, $newVersion=NULL, $newFile=NULL) | |
TransformSchema ($schema, $xsl, $schematype='string') | |
xslt_error_handler ($parser, $errno, $level, $fields) | |
SchemaFileVersion ($filename) | |
SchemaStringVersion ($xmlstring) | |
ExtractSchema ($data=FALSE, $indent= ' ') | |
SetPrefix ($prefix= '', $underscore=TRUE) | |
prefix ($name= '') | |
supportedPlatform ($platform=NULL) | |
clearSQL () | |
addSQL ($sql=NULL) | |
getSQL ($format=NULL, $sqlArray=NULL) | |
Destroy () | |
Public Attributes | |
$sqlArray | |
$db | |
$dict | |
$currentElement = '' | |
$upgrade = '' | |
$objectPrefix = '' | |
$mgq | |
$debug | |
$versionRegex = '/<schema.*?( version="([^"]*)")?.*?>/' | |
$schemaVersion | |
$success | |
$executeInline | |
$continueOnError | |
$existingData |
Definition at line 1216 of file adodb-xmlschema.inc.php.
|
Creates an adoSchema object Creating an adoSchema object is the first step in processing an XML schema. The only parameter is an ADOdb database connection object, which must already have been created.
Definition at line 1302 of file adodb-xmlschema.inc.php. |
|
Creates an adoSchema object Creating an adoSchema object is the first step in processing an XML schema. The only parameter is an ADOdb database connection object, which must already have been created.
Definition at line 1407 of file adodb-xmlschema03.inc.php. |
|
XML Callback to process CDATA elements private Definition at line 1830 of file adodb-xmlschema03.inc.php. |
|
XML Callback to process CDATA elements private Definition at line 1670 of file adodb-xmlschema.inc.php. |
|
XML Callback to process end elements private Definition at line 1839 of file adodb-xmlschema03.inc.php. |
|
XML Callback to process end elements private Definition at line 1679 of file adodb-xmlschema.inc.php. |
|
XML Callback to process start elements private Definition at line 1805 of file adodb-xmlschema03.inc.php. |
|
XML Callback to process start elements private Definition at line 1647 of file adodb-xmlschema.inc.php. |
|
Adds SQL into the SQL array.
Definition at line 2303 of file adodb-xmlschema03.inc.php. References ADOConnection::outp(). |
|
Adds SQL into the SQL array.
Definition at line 2125 of file adodb-xmlschema.inc.php. References ADOConnection::outp(). |
|
Clears the array of generated SQL. private Definition at line 2291 of file adodb-xmlschema03.inc.php. |
|
Clears the array of generated SQL. private Definition at line 2113 of file adodb-xmlschema.inc.php. |
|
Enables/disables SQL continue on error. Call this method to enable or disable continuation of SQL execution if an error occurs. If the mode is set to TRUE (continue), AXMLS will continue to apply SQL to the database, even if an error occurs. If the mode is set to FALSE (halt), AXMLS will halt execution of generated sql if an error occurs, though parsing of the schema will continue.
Definition at line 1543 of file adodb-xmlschema03.inc.php. |
|
Enables/disables SQL continue on error. Call this method to enable or disable continuation of SQL execution if an error occurs. If the mode is set to TRUE (continue), AXMLS will continue to apply SQL to the database, even if an error occurs. If the mode is set to FALSE (halt), AXMLS will halt execution of generated sql if an error occurs, though parsing of the schema will continue.
Definition at line 1396 of file adodb-xmlschema.inc.php. |
|
Converts an XML schema file to the specified DTD version. Call this method to convert the specified XML schema file to a different AXMLS DTD version. For instance, to convert a schema created for an pre-1.0 version for AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.2). If no DTD version parameter is specified, the schema will be converted to the current DTD version. If the newFile parameter is provided, the converted schema will be written to the specified file.
Definition at line 1908 of file adodb-xmlschema03.inc.php. |
|
Converts an XML schema file to the specified DTD version. Call this method to convert the specified XML schema file to a different AXMLS DTD version. For instance, to convert a schema created for an pre-1.0 version for AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.2). If no DTD version parameter is specified, the schema will be converted to the current DTD version. If the newFile parameter is provided, the converted schema will be written to the specified file.
Definition at line 1747 of file adodb-xmlschema.inc.php. |
|
Converts an XML schema string to the specified DTD version. Call this method to convert a string containing an XML schema to a different AXMLS DTD version. For instance, to convert a schema created for an pre-1.0 version for AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.2). If no DTD version parameter is specified, the schema will be converted to the current DTD version. If the newFile parameter is provided, the converted schema will be written to the specified file.
Definition at line 1859 of file adodb-xmlschema03.inc.php. |
|
Converts an XML schema string to the specified DTD version. Call this method to convert a string containing an XML schema to a different AXMLS DTD version. For instance, to convert a schema created for an pre-1.0 version for AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.2). If no DTD version parameter is specified, the schema will be converted to the current DTD version. If the newFile parameter is provided, the converted schema will be written to the specified file.
Definition at line 1699 of file adodb-xmlschema.inc.php. |
|
Create an xml parser
Definition at line 1788 of file adodb-xmlschema03.inc.php. |
|
Create an xml parser
Definition at line 1630 of file adodb-xmlschema.inc.php. |
|
Destroys an adoSchema object. Call this method to clean up after an adoSchema object that is no longer in use.
Definition at line 2371 of file adodb-xmlschema03.inc.php. |
|
Destroys an adoSchema object. Call this method to clean up after an adoSchema object that is no longer in use.
Definition at line 2193 of file adodb-xmlschema.inc.php. |
|
Enables/disables inline SQL execution. Call this method to enable or disable inline execution of the schema. If the mode is set to TRUE (inline execution), AXMLS applies the SQL to the database immediately as each schema entity is parsed. If the mode is set to FALSE (post execution), AXMLS parses the entire schema and you will need to call adoSchema::ExecuteSchema() to apply the schema to the database.
Definition at line 1522 of file adodb-xmlschema03.inc.php. |
|
Enables/disables inline SQL execution. Call this method to enable or disable inline execution of the schema. If the mode is set to TRUE (inline execution), AXMLS applies the SQL to the database immediately as each schema entity is parsed. If the mode is set to FALSE (post execution), AXMLS parses the entire schema and you will need to call adoSchema::ExecuteSchema() to apply the schema to the database.
Definition at line 1375 of file adodb-xmlschema.inc.php. |
|
Applies the current XML schema to the database (post execution). Call this method to apply the current schema (generally created by calling ParseSchema() or ParseSchemaString() ) to the database (creating the tables, indexes, and executing other SQL specified in the schema) after parsing.
Definition at line 1723 of file adodb-xmlschema03.inc.php. |
|
Applies the current XML schema to the database (post execution). Call this method to apply the current schema (generally created by calling ParseSchema() or ParseSchemaString() ) to the database (creating the tables, indexes, and executing other SQL specified in the schema) after parsing.
Definition at line 1565 of file adodb-xmlschema.inc.php. |
|
Specifies how to handle existing data row when there is a unique key conflict. The existingData setting specifies how the parser should handle existing rows when a unique key violation occurs during the insert. This can happen when inserting data into an existing table with one or more primary keys or unique indexes. The existingData method takes one of three options: XMLS_MODE_INSERT attempts to always insert the data as a new row. In the event of a unique key violation, the database will generate an error. XMLS_MODE_UPDATE attempts to update the any existing rows with the new data based upon primary or unique key fields in the schema. If the data row in the schema specifies no unique fields, the row data will be inserted as a new row. XMLS_MODE_IGNORE specifies that any data rows that would result in a unique key violation be ignored; no inserts or updates will take place. For backward compatibility, the default setting is XMLS_MODE_INSERT, but XMLS_MODE_UPDATE will generally be the most appropriate setting.
Definition at line 1487 of file adodb-xmlschema03.inc.php. |
|
Extracts an XML schema from an existing database. Call this method to create an XML schema string from an existing database. If the data parameter is set to TRUE, AXMLS will include the data from the database in the schema.
Definition at line 2097 of file adodb-xmlschema03.inc.php. |
|
Extracts an XML schema from an existing database. Call this method to create an XML schema string from an existing database. If the data parameter is set to TRUE, AXMLS will include the data from the database in the schema.
Definition at line 1936 of file adodb-xmlschema.inc.php. |
|
Gets the SQL array in the specified format.
Definition at line 2345 of file adodb-xmlschema03.inc.php. |
|
Gets the SQL array in the specified format.
Definition at line 2167 of file adodb-xmlschema.inc.php. |
|
Loads an XML schema from a file and converts it to SQL. Call this method to load the specified schema (see the DTD for the proper format) from the filesystem and generate the SQL necessary to create the database described. This method automatically converts the schema to the latest axmls schema version.
Definition at line 1564 of file adodb-xmlschema03.inc.php. |
|
Loads an XML schema from a file and converts it to SQL. Call this method to load the specified schema (see the DTD for the proper format) from the filesystem and generate the SQL necessary to create the database described.
Definition at line 1415 of file adodb-xmlschema.inc.php. |
|
Loads an XML schema from a file and converts it to SQL. Call this method to load the specified schema directly from a file (see the DTD for the proper format) and generate the SQL necessary to create the database described by the schema. Use this method when you are dealing with large schema files. Otherwise, ParseSchema() is faster. This method does not automatically convert the schema to the latest axmls schema version. You must convert the schema manually using either the ConvertSchemaFile() or ConvertSchemaString() method.
Definition at line 1589 of file adodb-xmlschema03.inc.php. |
|
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.
Definition at line 1432 of file adodb-xmlschema.inc.php. |
|
Converts an XML schema string to SQL. Call this method to parse a string containing an XML schema (see the DTD for the proper format) and generate the SQL necessary to create the database described by the schema.
Definition at line 1641 of file adodb-xmlschema03.inc.php. |
|
Converts an XML schema string to SQL. Call this method to parse a string containing an XML schema (see the DTD for the proper format) and generate the SQL necessary to create the database described by the schema.
Definition at line 1484 of file adodb-xmlschema.inc.php. |
|
Returns an object name with the current prefix prepended.
Definition at line 2245 of file adodb-xmlschema03.inc.php. |
|
Returns an object name with the current prefix prepended.
Definition at line 2076 of file adodb-xmlschema.inc.php. |
|
Returns the current SQL array. Call this method to fetch the array of SQL queries resulting from ParseSchema() or ParseSchemaString().
Definition at line 1750 of file adodb-xmlschema03.inc.php. |
|
Returns the current SQL array. Call this method to fetch the array of SQL queries resulting from ParseSchema() or ParseSchemaString().
Definition at line 1592 of file adodb-xmlschema.inc.php. |
|
Loads an XML schema from a file and converts it to uninstallation SQL. Call this method to load the specified schema (see the DTD for the proper format) from the filesystem and generate the SQL necessary to remove the database described.
Definition at line 1685 of file adodb-xmlschema03.inc.php. |
|
Loads an XML schema from a file and converts it to uninstallation SQL. Call this method to load the specified schema (see the DTD for the proper format) from the filesystem and generate the SQL necessary to remove the database described.
Definition at line 1527 of file adodb-xmlschema.inc.php. |
|
Converts an XML schema string to uninstallation SQL. Call this method to parse a string containing an XML schema (see the DTD for the proper format) and generate the SQL necessary to uninstall the database described by the schema.
Definition at line 1700 of file adodb-xmlschema03.inc.php. |
|
Converts an XML schema string to uninstallation SQL. Call this method to parse a string containing an XML schema (see the DTD for the proper format) and generate the SQL necessary to uninstall the database described by the schema.
Definition at line 1542 of file adodb-xmlschema.inc.php. |
|
Saves the current SQL array to the local filesystem as a list of SQL queries. Call this method to save the array of SQL queries (generally resulting from a parsed XML schema) to the filesystem.
Definition at line 1764 of file adodb-xmlschema03.inc.php. |
|
Saves the current SQL array to the local filesystem as a list of SQL queries. Call this method to save the array of SQL queries (generally resulting from a parsed XML schema) to the filesystem.
Definition at line 1606 of file adodb-xmlschema.inc.php. |
|
Returns the AXMLS Schema Version of the requested XML schema file. Call this method to obtain the AXMLS DTD version of the requested XML schema file.
Definition at line 2049 of file adodb-xmlschema03.inc.php. |
|
Returns the AXMLS Schema Version of the requested XML schema file. Call this method to obtain the AXMLS DTD version of the requested XML schema file.
Definition at line 1888 of file adodb-xmlschema.inc.php. |
|
Returns the AXMLS Schema Version of the provided XML schema string. Call this method to obtain the AXMLS DTD version of the provided XML schema string.
Definition at line 2075 of file adodb-xmlschema03.inc.php. |
|
Returns the AXMLS Schema Version of the provided XML schema string. Call this method to obtain the AXMLS DTD version of the provided XML schema string.
Definition at line 1914 of file adodb-xmlschema.inc.php. |
|
Sets a prefix for database objects Call this method to set a standard prefix that will be prepended to all database tables and indices when the schema is parsed. Calling setPrefix with no arguments clears the prefix.
Definition at line 2212 of file adodb-xmlschema03.inc.php. |
|
Sets a prefix for database objects Call this method to set a standard prefix that will be prepended to all database tables and indices when the schema is parsed. Calling setPrefix with no arguments clears the prefix.
Definition at line 2043 of file adodb-xmlschema.inc.php. |
|
Sets the method to be used for upgrading an existing database Use this method to specify how existing database objects should be upgraded. The method option can be set to ALTER, REPLACE, BEST, or NONE. ALTER attempts to alter each database object directly, REPLACE attempts to rebuild each object from scratch, BEST attempts to determine the best upgrade method for each object, and NONE disables upgrading. This method is not yet used by AXMLS, but exists for backward compatibility. The ALTER method is automatically assumed when the adoSchema object is instantiated; other upgrade methods are not currently supported.
Definition at line 1439 of file adodb-xmlschema03.inc.php. |
|
Sets the method to be used for upgrading an existing database Use this method to specify how existing database objects should be upgraded. The method option can be set to ALTER, REPLACE, BEST, or NONE. ALTER attempts to alter each database object directly, REPLACE attempts to rebuild each object from scratch, BEST attempts to determine the best upgrade method for each object, and NONE disables upgrading. This method is not yet used by AXMLS, but exists for backward compatibility. The ALTER method is automatically assumed when the adoSchema object is instantiated; other upgrade methods are not currently supported.
Definition at line 1333 of file adodb-xmlschema.inc.php. |
|
Checks if element references a specific platform
Definition at line 2265 of file adodb-xmlschema03.inc.php. |
|
Checks if element references a specific platform
Definition at line 2096 of file adodb-xmlschema.inc.php. |
|
Processes XSLT transformation errors
Definition at line 1997 of file adodb-xmlschema03.inc.php. |
|
Processes XSLT transformation errors
Definition at line 1836 of file adodb-xmlschema.inc.php. |