ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:axmls_index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
v5:axmls:axmls_index [2016/01/13 04:02] – ↷ Links adapted because of a move operation mnewnhamv5:axmls:axmls_index [2018/07/01 22:13] – prefer functions start lowercase (#430) peterdd
Line 1: Line 1:
 +<WRAP right box>
 +[[v5:axmls:Index]]\\
 +</WRAP>
 ======= ADOdb-xmlschema ====== ======= ADOdb-xmlschema ======
 +-----------------------------------
 ~~NOTOC~~ ~~NOTOC~~
 <WRAP right box round 300px> <WRAP right box round 300px>
Line 151: Line 155:
  */  */
 $db = ADONewConnection( $platform ); $db = ADONewConnection( $platform );
-$db->Connect( $dbHost, $dbUser, $dbPassword, $dbName );+$db->connect( $dbHost, $dbUser, $dbPassword, $dbName );
  
 /* Use the database connection to create a new adoSchema object. /* Use the database connection to create a new adoSchema object.
Line 161: Line 165:
  * the database.  * the database.
  */  */
-$sql = $schema->ParseSchema( $schemaFile ); +$sql = $schema->parseSchema( $schemaFile ); 
-$result = $schema->ExecuteSchema();+$result = $schema->executeSchema();
 </code> </code>
  
Line 169: Line 173:
 <code php> <code php>
 $db = ADONewConnection( 'mysql' ); $db = ADONewConnection( 'mysql' );
-$db->Connect( 'host', 'user', 'password', 'database' );+$db->connect( 'host', 'user', 'password', 'database' );
 </code> </code>
  
Line 181: Line 185:
  
 <code php> <code php>
-$schema->ParseSchema( $schemaFile );  +$schema->parseSchema( $schemaFile );  
-$schema->ExecuteSchema(); +$schema->executeSchema(); 
 </code> </code>
  
Line 200: Line 204:
  
 // Inline Execution // Inline Execution
-$schema->ContinueOnError( TRUE ); +$schema->continueOnError( TRUE ); 
-$schema->ExecuteInline( TRUE ); +$schema->executeInline( TRUE ); 
-$schema->ParseSchemaFile( "schema.xml" );+$schema->parseSchemaFile( "schema.xml" );
 </code> </code>
  
Line 212: Line 216:
 // Post Execution (default) // Post Execution (default)
 $schema->executeInline( FALSE ); $schema->executeInline( FALSE );
-$schema->ParseSchemaFile( "schema.xml" ); +$schema->parseSchemaFile( "schema.xml" ); 
-$schema->ExecuteSchema();+$schema->executeSchema();
 </code> </code>
  
v5/axmls/axmls_index.txt · Last modified: 2020/01/13 15:52 by dregad