adoSchema Klassenreferenz

adoSchema Klassenreferenz

Öffentliche Methoden

 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= ' ', $prefix= '', $stripprefix=false)
 
 SetPrefix ($prefix= '', $underscore=TRUE)
 
 prefix ($name= '')
 
 supportedPlatform ($platform=NULL)
 
 clearSQL ()
 
 addSQL ($sql=NULL)
 
 getSQL ($format=NULL, $sqlArray=NULL)
 
 Destroy ()
 

Datenfelder

 $sqlArray
 
 $db
 
 $dict
 
 $currentElement = ''
 
 $upgrade = ''
 
 $objectPrefix = ''
 
 $mgq
 
 $debug
 
 $versionRegex = '/<schema.*?( version="([^"]*)")?.*?>/'
 
 $schemaVersion
 
 $success
 
 $executeInline
 
 $continueOnError
 
 $existingData
 

Ausführliche Beschreibung

Definiert in Zeile 1218 der Datei adodb-xmlschema.inc.php.

Dokumentation der Elementfunktionen

_file_get_contents (   $path)

Definiert in Zeile 1728 der Datei adodb-xmlschema.inc.php.

Wird benutzt von ConvertSchemaFile() und TransformSchema().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

_tag_cdata ( $parser,
  $cdata 
)

XML Callback to process CDATA elements

private

Definiert in Zeile 1673 der Datei adodb-xmlschema.inc.php.

_tag_cdata ( $parser,
  $cdata 
)

XML Callback to process CDATA elements

private

Definiert in Zeile 1832 der Datei adodb-xmlschema03.inc.php.

_tag_close ( $parser,
  $tag 
)

XML Callback to process end elements

private

Definiert in Zeile 1682 der Datei adodb-xmlschema.inc.php.

_tag_close ( $parser,
  $tag 
)

XML Callback to process end elements

private

Definiert in Zeile 1841 der Datei adodb-xmlschema03.inc.php.

_tag_open ( $parser,
  $tag,
  $attributes 
)

XML Callback to process start elements

private

Definiert in Zeile 1650 der Datei adodb-xmlschema.inc.php.

Benutzt supportedPlatform().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

_tag_open ( $parser,
  $tag,
  $attributes 
)

XML Callback to process start elements

private

Definiert in Zeile 1807 der Datei adodb-xmlschema03.inc.php.

Benutzt supportedPlatform().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

addSQL (   $sql = NULL)

Adds SQL into the SQL array.

Parameter
mixed$sqlSQL to Add
Rückgabe
boolean TRUE if successful, else FALSE.

private

Definiert in Zeile 2128 der Datei adodb-xmlschema.inc.php.

Benutzt $debug, $ok, ContinueOnError() und ExecuteInline().

Wird benutzt von addSQL().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

addSQL (   $sql = NULL)

Adds SQL into the SQL array.

Parameter
mixed$sqlSQL to Add
Rückgabe
boolean TRUE if successful, else FALSE.

private

Definiert in Zeile 2309 der Datei adodb-xmlschema03.inc.php.

Benutzt $debug, $ok, addSQL(), ContinueOnError() und ExecuteInline().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

adoSchema (   $db)

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.

Parameter
object$dbADOdb database connection object.

Definiert in Zeile 1304 der Datei adodb-xmlschema.inc.php.

Benutzt $db.

adoSchema (   $db)

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.

Parameter
object$dbADOdb database connection object.

Definiert in Zeile 1408 der Datei adodb-xmlschema03.inc.php.

Benutzt $db.

clearSQL ( )

Clears the array of generated SQL.

private

Definiert in Zeile 2116 der Datei adodb-xmlschema.inc.php.

clearSQL ( )

Clears the array of generated SQL.

private

Definiert in Zeile 2297 der Datei adodb-xmlschema03.inc.php.

ContinueOnError (   $mode = NULL)

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.

Parameter
bool$modeexecute
Rückgabe
bool current continueOnError mode
Siehe auch
addSQL(), ExecuteSchema()

Definiert in Zeile 1399 der Datei adodb-xmlschema.inc.php.

Benutzt $continueOnError.

Wird benutzt von addSQL() und ExecuteSchema().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

ContinueOnError (   $mode = NULL)

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.

Parameter
bool$modeexecute
Rückgabe
bool current continueOnError mode
Siehe auch
addSQL(), ExecuteSchema()

Definiert in Zeile 1545 der Datei adodb-xmlschema03.inc.php.

Benutzt $continueOnError.

ConvertSchemaFile (   $filename,
  $newVersion = NULL,
  $newFile = NULL 
)

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.

Siehe auch
ConvertSchemaString()
Parameter
string$filenameName of XML schema file that will be converted.
string$newVersionDTD version to convert to.
string$newFileFile name of (converted) output file.
Rückgabe
string Converted XML schema or FALSE if an error occurs.

Definiert in Zeile 1750 der Datei adodb-xmlschema.inc.php.

Benutzt $result, $schemaVersion, _file_get_contents(), SchemaFileVersion() und TransformSchema().

Wird benutzt von ParseSchema() und RemoveSchema().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

ConvertSchemaFile (   $filename,
  $newVersion = NULL,
  $newFile = NULL 
)

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.

Siehe auch
ConvertSchemaString()
Parameter
string$filenameName of XML schema file that will be converted.
string$newVersionDTD version to convert to.
string$newFileFile name of (converted) output file.
Rückgabe
string Converted XML schema or FALSE if an error occurs.

Definiert in Zeile 1910 der Datei adodb-xmlschema03.inc.php.

Benutzt $result, $schemaVersion, _file_get_contents(), SchemaFileVersion() und TransformSchema().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

ConvertSchemaString (   $schema,
  $newVersion = NULL,
  $newFile = NULL 
)

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.

Siehe auch
ConvertSchemaFile()
Parameter
string$schemaString containing XML schema that will be converted.
string$newVersionDTD version to convert to.
string$newFileFile name of (converted) output file.
Rückgabe
string Converted XML schema or FALSE if an error occurs.

Definiert in Zeile 1702 der Datei adodb-xmlschema.inc.php.

Benutzt $result, $schemaVersion, SchemaStringVersion() und TransformSchema().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

ConvertSchemaString (   $schema,
  $newVersion = NULL,
  $newFile = NULL 
)

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.

Siehe auch
ConvertSchemaFile()
Parameter
string$schemaString containing XML schema that will be converted.
string$newVersionDTD version to convert to.
string$newFileFile name of (converted) output file.
Rückgabe
string Converted XML schema or FALSE if an error occurs.

Definiert in Zeile 1861 der Datei adodb-xmlschema03.inc.php.

Benutzt $result, $schemaVersion, SchemaStringVersion() und TransformSchema().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

create_parser ( )

Create an xml parser

Rückgabe
object PHP XML parser object

private

Definiert in Zeile 1633 der Datei adodb-xmlschema.inc.php.

Wird benutzt von ParseSchemaFile() und ParseSchemaString().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

create_parser ( )

Create an xml parser

Rückgabe
object PHP XML parser object

private

Definiert in Zeile 1790 der Datei adodb-xmlschema03.inc.php.

Destroy ( )

Destroys an adoSchema object.

Call this method to clean up after an adoSchema object that is no longer in use.

Veraltet:
adoSchema now cleans up automatically.

Definiert in Zeile 2196 der Datei adodb-xmlschema.inc.php.

Destroy ( )

Destroys an adoSchema object.

Call this method to clean up after an adoSchema object that is no longer in use.

Veraltet:
adoSchema now cleans up automatically.

Definiert in Zeile 2377 der Datei adodb-xmlschema03.inc.php.

ExecuteInline (   $mode = NULL)

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.

Parameter
bool$modeexecute
Rückgabe
bool current execution mode
Siehe auch
ParseSchema(), ExecuteSchema()

Definiert in Zeile 1378 der Datei adodb-xmlschema.inc.php.

Benutzt $executeInline.

Wird benutzt von addSQL().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

ExecuteInline (   $mode = NULL)

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.

Parameter
bool$modeexecute
Rückgabe
bool current execution mode
Siehe auch
ParseSchema(), ExecuteSchema()

Definiert in Zeile 1524 der Datei adodb-xmlschema03.inc.php.

Benutzt $executeInline.

ExecuteSchema (   $sqlArray = NULL,
  $continueOnErr = NULL 
)

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.

Siehe auch
ParseSchema(), ParseSchemaString(), ExecuteInline()
Parameter
array$sqlArrayArray of SQL statements that will be applied rather than the current schema.
boolean$continueOnErrContinue to apply the schema even if an error occurs.
Rückgabe
integer 0 if failure, 1 if errors, 2 if successful.

Definiert in Zeile 1568 der Datei adodb-xmlschema.inc.php.

Benutzt $sqlArray, $success und ContinueOnError().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

ExecuteSchema (   $sqlArray = NULL,
  $continueOnErr = NULL 
)

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.

Siehe auch
ParseSchema(), ParseSchemaString(), ExecuteInline()
Parameter
array$sqlArrayArray of SQL statements that will be applied rather than the current schema.
boolean$continueOnErrContinue to apply the schema even if an error occurs.
Rückgabe
integer 0 if failure, 1 if errors, 2 if successful.

Definiert in Zeile 1725 der Datei adodb-xmlschema03.inc.php.

Benutzt $sqlArray, $success und ContinueOnError().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

ExistingData (   $mode = NULL)

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.

Parameter
int$modeXMLS_MODE_INSERT, XMLS_MODE_UPDATE, or XMLS_MODE_IGNORE
Rückgabe
int current mode

Definiert in Zeile 1489 der Datei adodb-xmlschema03.inc.php.

Benutzt $existingData.

ExtractSchema (   $data = FALSE)

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.

Parameter
boolean$dataInclude data in schema dump
Rückgabe
string Generated XML schema

Definiert in Zeile 1939 der Datei adodb-xmlschema.inc.php.

Benutzt $tables.

ExtractSchema (   $data = FALSE,
  $indent = '  ',
  $prefix = '',
  $stripprefix = false 
)

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.

Parameter
boolean$dataInclude data in schema dump string indentation to use string extract only tables with given prefix strip prefix string when storing in XML schema
Rückgabe
string Generated XML schema

Definiert in Zeile 2102 der Datei adodb-xmlschema03.inc.php.

Benutzt $tables.

getSQL (   $format = NULL,
  $sqlArray = NULL 
)

Gets the SQL array in the specified format.

Parameter
string$formatFormat
Rückgabe
mixed SQL

private

Definiert in Zeile 2170 der Datei adodb-xmlschema.inc.php.

Benutzt $sqlArray.

Wird benutzt von PrintSQL().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

getSQL (   $format = NULL,
  $sqlArray = NULL 
)

Gets the SQL array in the specified format.

Parameter
string$formatFormat
Rückgabe
mixed SQL

private

Definiert in Zeile 2351 der Datei adodb-xmlschema03.inc.php.

Benutzt $sqlArray.

ParseSchema (   $filename,
  $returnSchema = FALSE 
)

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.

Siehe auch
ParseSchemaString()
Parameter
string$fileName of XML schema file.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute

Definiert in Zeile 1418 der Datei adodb-xmlschema.inc.php.

Benutzt ConvertSchemaFile() und ParseSchemaString().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

ParseSchema (   $filename,
  $returnSchema = FALSE 
)

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.

Siehe auch
ParseSchemaString()
Parameter
string$fileName of XML schema file.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute

Definiert in Zeile 1566 der Datei adodb-xmlschema03.inc.php.

Benutzt ConvertSchemaFile() und ParseSchemaString().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

ParseSchemaFile (   $filename,
  $returnSchema = FALSE 
)

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.

Parameter
string$fileName of XML schema file.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute.
Veraltet:
Replaced by adoSchema::ParseSchema() and adoSchema::ParseSchemaString()
Siehe auch
ParseSchema(), ParseSchemaString()

Definiert in Zeile 1435 der Datei adodb-xmlschema.inc.php.

Benutzt $sqlArray, create_parser() und SchemaFileVersion().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

ParseSchemaFile (   $filename,
  $returnSchema = FALSE 
)

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.

Siehe auch
ParseSchema()
ConvertSchemaFile()
ConvertSchemaString()
Parameter
string$fileName of XML schema file.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute.
Veraltet:
Replaced by adoSchema::ParseSchema() and adoSchema::ParseSchemaString()
Siehe auch
ParseSchema(), ParseSchemaString()

Definiert in Zeile 1591 der Datei adodb-xmlschema03.inc.php.

Benutzt $sqlArray, create_parser(), logMsg() und SchemaFileVersion().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

ParseSchemaString (   $xmlstring,
  $returnSchema = FALSE 
)

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.

Siehe auch
ParseSchema()
Parameter
string$xmlstringXML schema string.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute.

Definiert in Zeile 1487 der Datei adodb-xmlschema.inc.php.

Benutzt $sqlArray, create_parser() und SchemaStringVersion().

Wird benutzt von ParseSchema() und RemoveSchemaString().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

ParseSchemaString (   $xmlstring,
  $returnSchema = FALSE 
)

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.

Siehe auch
ParseSchema()
Parameter
string$xmlstringXML schema string.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute.

Definiert in Zeile 1643 der Datei adodb-xmlschema03.inc.php.

Benutzt $sqlArray, create_parser(), logMsg() und SchemaStringVersion().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

prefix (   $name = '')

Returns an object name with the current prefix prepended.

Parameter
string$nameName
Rückgabe
string Prefixed name

private

Definiert in Zeile 2079 der Datei adodb-xmlschema.inc.php.

prefix (   $name = '')

Returns an object name with the current prefix prepended.

Parameter
string$nameName
Rückgabe
string Prefixed name

private

Definiert in Zeile 2251 der Datei adodb-xmlschema03.inc.php.

PrintSQL (   $format = 'NONE')

Returns the current SQL array.

Call this method to fetch the array of SQL queries resulting from ParseSchema() or ParseSchemaString().

Parameter
string$formatFormat: HTML, TEXT, or NONE (PHP array)
Rückgabe
array Array of SQL statements or FALSE if an error occurs

Definiert in Zeile 1595 der Datei adodb-xmlschema.inc.php.

Benutzt $sqlArray und getSQL().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

PrintSQL (   $format = 'NONE')

Returns the current SQL array.

Call this method to fetch the array of SQL queries resulting from ParseSchema() or ParseSchemaString().

Parameter
string$formatFormat: HTML, TEXT, or NONE (PHP array)
Rückgabe
array Array of SQL statements or FALSE if an error occurs

Definiert in Zeile 1752 der Datei adodb-xmlschema03.inc.php.

Benutzt $sqlArray und getSQL().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

RemoveSchema (   $filename,
  $returnSchema = FALSE 
)

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.

Siehe auch
RemoveSchemaString()
Parameter
string$fileName of XML schema file.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute

Definiert in Zeile 1530 der Datei adodb-xmlschema.inc.php.

Benutzt ConvertSchemaFile() und RemoveSchemaString().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

RemoveSchema (   $filename,
  $returnSchema = FALSE 
)

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.

Siehe auch
RemoveSchemaString()
Parameter
string$fileName of XML schema file.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute

Definiert in Zeile 1687 der Datei adodb-xmlschema03.inc.php.

Benutzt ConvertSchemaFile() und RemoveSchemaString().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

RemoveSchemaString (   $schema,
  $returnSchema = FALSE 
)

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.

Siehe auch
RemoveSchema()
Parameter
string$schemaXML schema string.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute.

Definiert in Zeile 1545 der Datei adodb-xmlschema.inc.php.

Benutzt ParseSchemaString(), SchemaStringVersion() und TransformSchema().

Wird benutzt von RemoveSchema().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

RemoveSchemaString (   $schema,
  $returnSchema = FALSE 
)

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.

Siehe auch
RemoveSchema()
Parameter
string$schemaXML schema string.
bool$returnSchemaReturn schema rather than parsing.
Rückgabe
array Array of SQL queries, ready to execute.

Definiert in Zeile 1702 der Datei adodb-xmlschema03.inc.php.

Benutzt ParseSchemaString(), SchemaStringVersion() und TransformSchema().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

SaveSQL (   $filename = './schema.sql')

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.

Parameter
string$filenamePath and name where the file should be saved.
Rückgabe
boolean TRUE if save is successful, else FALSE.

Definiert in Zeile 1609 der Datei adodb-xmlschema.inc.php.

Benutzt $sqlArray.

SaveSQL (   $filename = './schema.sql')

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.

Parameter
string$filenamePath and name where the file should be saved.
Rückgabe
boolean TRUE if save is successful, else FALSE.

Definiert in Zeile 1766 der Datei adodb-xmlschema03.inc.php.

Benutzt $sqlArray.

SchemaFileVersion (   $filename)

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.

Siehe auch
SchemaStringVersion()
Parameter
string$filenameAXMLS schema file
Rückgabe
string Schema version number or FALSE on error

Definiert in Zeile 1891 der Datei adodb-xmlschema.inc.php.

Wird benutzt von ConvertSchemaFile() und ParseSchemaFile().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

SchemaFileVersion (   $filename)

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.

Siehe auch
SchemaStringVersion()
Parameter
string$filenameAXMLS schema file
Rückgabe
string Schema version number or FALSE on error

Definiert in Zeile 2051 der Datei adodb-xmlschema03.inc.php.

SchemaStringVersion (   $xmlstring)

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.

Siehe auch
SchemaFileVersion()
Parameter
string$xmlstringXML schema string
Rückgabe
string Schema version number or FALSE on error

Definiert in Zeile 1917 der Datei adodb-xmlschema.inc.php.

Wird benutzt von ConvertSchemaString(), ParseSchemaString() und RemoveSchemaString().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

SchemaStringVersion (   $xmlstring)

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.

Siehe auch
SchemaFileVersion()
Parameter
string$xmlstringXML schema string
Rückgabe
string Schema version number or FALSE on error

Definiert in Zeile 2077 der Datei adodb-xmlschema03.inc.php.

SetPrefix (   $prefix = '',
  $underscore = TRUE 
)

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.

Parameter
string$prefixPrefix that will be prepended.
boolean$underscoreIf TRUE, automatically append an underscore character to the prefix.
Rückgabe
boolean TRUE if successful, else FALSE

Definiert in Zeile 2046 der Datei adodb-xmlschema.inc.php.

Benutzt logMsg().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

SetPrefix (   $prefix = '',
  $underscore = TRUE 
)

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.

Parameter
string$prefixPrefix that will be prepended.
boolean$underscoreIf TRUE, automatically append an underscore character to the prefix.
Rückgabe
boolean TRUE if successful, else FALSE

Definiert in Zeile 2218 der Datei adodb-xmlschema03.inc.php.

Benutzt logMsg().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

SetUpgradeMethod (   $method = '')

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.

Parameter
string$methodUpgrade method (ALTER|REPLACE|BEST|NONE)
Rückgabe
string Upgrade method used

Definiert in Zeile 1336 der Datei adodb-xmlschema.inc.php.

Benutzt $upgrade.

SetUpgradeMethod (   $method = '')

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.

Parameter
string$methodUpgrade method (ALTER|REPLACE|BEST|NONE)
Rückgabe
string Upgrade method used

Definiert in Zeile 1441 der Datei adodb-xmlschema03.inc.php.

Benutzt $upgrade.

supportedPlatform (   $platform = NULL)

Checks if element references a specific platform

Parameter
string$platformRequested platform
Rückgabe
boolean TRUE if platform check succeeds

private

Definiert in Zeile 2099 der Datei adodb-xmlschema.inc.php.

Benutzt logMsg().

Wird benutzt von _tag_open().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

supportedPlatform (   $platform = NULL)

Checks if element references a specific platform

Parameter
string$platformRequested platform
Rückgabe
boolean TRUE if platform check succeeds

private

Definiert in Zeile 2271 der Datei adodb-xmlschema03.inc.php.

Benutzt logMsg().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

TransformSchema (   $schema,
  $xsl,
  $schematype = 'string' 
)

Definiert in Zeile 1780 der Datei adodb-xmlschema.inc.php.

Benutzt $result und _file_get_contents().

Wird benutzt von ConvertSchemaFile(), ConvertSchemaString() und RemoveSchemaString().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

TransformSchema (   $schema,
  $xsl,
  $schematype = 'string' 
)

Definiert in Zeile 1940 der Datei adodb-xmlschema03.inc.php.

Benutzt $result und _file_get_contents().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

xslt_error_handler (   $parser,
  $errno,
  $level,
  $fields 
)

Processes XSLT transformation errors

Parameter
object$parserXML parser object
integer$errnoError number
integer$levelError level
array$fieldsError information fields

private

Definiert in Zeile 1839 der Datei adodb-xmlschema.inc.php.

Benutzt E_USER_ERROR.

xslt_error_handler (   $parser,
  $errno,
  $level,
  $fields 
)

Processes XSLT transformation errors

Parameter
object$parserXML parser object
integer$errnoError number
integer$levelError level
array$fieldsError information fields

private

Definiert in Zeile 1999 der Datei adodb-xmlschema03.inc.php.

Benutzt E_USER_ERROR.

Dokumentation der Datenelemente

$continueOnError

Definiert in Zeile 1293 der Datei adodb-xmlschema.inc.php.

Wird benutzt von ContinueOnError().

$currentElement = ''

Definiert in Zeile 1242 der Datei adodb-xmlschema.inc.php.

$db

Definiert in Zeile 1230 der Datei adodb-xmlschema.inc.php.

Wird benutzt von adoSchema().

$debug

Definiert in Zeile 1266 der Datei adodb-xmlschema.inc.php.

Wird benutzt von addSQL().

$dict

Definiert in Zeile 1236 der Datei adodb-xmlschema.inc.php.

$executeInline

Definiert in Zeile 1288 der Datei adodb-xmlschema.inc.php.

Wird benutzt von ExecuteInline().

$existingData

Definiert in Zeile 1397 der Datei adodb-xmlschema03.inc.php.

Wird benutzt von ExistingData().

$mgq

Definiert in Zeile 1260 der Datei adodb-xmlschema.inc.php.

$objectPrefix = ''

Definiert in Zeile 1254 der Datei adodb-xmlschema.inc.php.

$schemaVersion

Definiert in Zeile 1278 der Datei adodb-xmlschema.inc.php.

Wird benutzt von ConvertSchemaFile() und ConvertSchemaString().

$sqlArray
$success

Definiert in Zeile 1283 der Datei adodb-xmlschema.inc.php.

Wird benutzt von ExecuteSchema().

$upgrade = ''

Definiert in Zeile 1248 der Datei adodb-xmlschema.inc.php.

Wird benutzt von SetUpgradeMethod().

$versionRegex = '/<schema.*?( version="([^"]*)")?.*?>/'

Definiert in Zeile 1272 der Datei adodb-xmlschema.inc.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien:




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.