API17

Difference between revisions of "JDatabaseMySQLImporter"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (→‎Examples: bad link repair)
(One intermediate revision by one other user not shown)
Line 6: Line 6:
 
===Defined in===
 
===Defined in===
 
libraries/joomla/database/database/mysqlimporter.php
 
libraries/joomla/database/database/mysqlimporter.php
 +
* see source code in [[jplatform:database/database/mysqlimporter.php|BitBucket]]
 
===Subpackage===
 
===Subpackage===
 
[[Subpackage Database/11.1|Database]]
 
[[Subpackage Database/11.1|Database]]
Line 80: Line 81:
 
<source lang="php">jimport( 'joomla.database.database.mysqlimporter' );</source>
 
<source lang="php">jimport( 'joomla.database.database.mysqlimporter' );</source>
 
===See also===
 
===See also===
 +
* JDatabaseMySQLImporter source code in [[jplatform:database/database/mysqlimporter.php|BitBucket]]
 
* [[JDatabaseMySQLImporter|Other versions of this class]]
 
* [[JDatabaseMySQLImporter|Other versions of this class]]
 
{{SeeAlso:JDatabaseMySQLImporter}}
 
{{SeeAlso:JDatabaseMySQLImporter}}
Line 95: Line 97:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JDatabaseMySQLImporter]]</noinclude>
+
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JDatabaseMySQLImporter]]</noinclude>

Revision as of 13:34, 29 August 2012

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

[Edit Descripton] Template:Description:JDatabaseMySQLImporter

Defined in[edit]

libraries/joomla/database/database/mysqlimporter.php

Subpackage[edit]

Database

Extends[edit]

Extended by[edit]

Methods[edit]

Method name Description
__construct Constructor.
asXml Set the output option for the exporter to XML format.
check Checks if all data and options are in order prior to exporting.
from Specifies the data source to import.
setDbo Sets the database connector to use for exporting structure and/or data from MySQL.
withStructure Sets an internal option to merge the structure based on the input data.
getAddColumnSQL Get the SQL syntax to add a column.
getAddKeySQL Get the SQL syntax to add a key.
getAlterTableSQL Get alters for table if there is a difference.
getChangeColumnSQL Get the syntax to alter a column.
getColumns Get the details list of columns for a table.
getColumnSQL Get the SQL syntax for a single column that would be included in a table create or alter statement.
getDropColumnSQL Get the SQL syntax to drop a column.
getDropKeySQL Get the SQL syntax to drop a key.
getDropPrimaryKeySQL Get the SQL syntax to drop a key.
getKeyLookup Get the details list of keys for a table.
getKeys Get the details list of keys for a table.
getKeySQL Get the SQL syntax for a key.
getRealTableName Get the real name of the table, converting the prefix wildcard string if present.
mergeStructure Merges the incoming structure definition with the existing structure.

Importing[edit]

jimport( 'joomla.database.database.mysqlimporter' );

See also[edit]

Template:SeeAlso:JDatabaseMySQLImporter [Edit See Also]

Examples[edit]

<CodeExamplesForm />