JDatabaseExporterMySQL: Difference between revisions
From Joomla! Documentation
m →User contributed notes: moving preparation |
m moving preparation |
||
| Line 14: | Line 14: | ||
|- | |- | ||
|public | |public | ||
|[[JDatabaseExporterMySQL::__construct | |[[API17:JDatabaseExporterMySQL::__construct|__construct]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
|public | |public | ||
|[[JDatabaseExporterMySQL::__toString | |[[API17:JDatabaseExporterMySQL::__toString|__toString]] | ||
|Magic function to exports the data to a string. | |Magic function to exports the data to a string. | ||
|- | |- | ||
|public | |public | ||
|[[JDatabaseExporterMySQL::asXml | |[[API17:JDatabaseExporterMySQL::asXml|asXml]] | ||
|Set the output option for the exporter to XML format. | |Set the output option for the exporter to XML format. | ||
|- | |- | ||
|public | |public | ||
|[[JDatabaseExporterMySQL::check | |[[API17:JDatabaseExporterMySQL::check|check]] | ||
|Checks if all data and options are in order prior to exporting. | |Checks if all data and options are in order prior to exporting. | ||
|- | |- | ||
|public | |public | ||
|[[JDatabaseExporterMySQL::from | |[[API17:JDatabaseExporterMySQL::from|from]] | ||
|Specifies a list of table names to export. | |Specifies a list of table names to export. | ||
|- | |- | ||
|public | |public | ||
|[[JDatabaseExporterMySQL::setDbo | |[[API17:JDatabaseExporterMySQL::setDbo|setDbo]] | ||
|Sets the database connector to use for exporting structure and/or data from MySQL. | |Sets the database connector to use for exporting structure and/or data from MySQL. | ||
|- | |- | ||
|public | |public | ||
|[[JDatabaseExporterMySQL::withStructure | |[[API17:JDatabaseExporterMySQL::withStructure|withStructure]] | ||
|Sets an internal option to export the structure of the input table(s). | |Sets an internal option to export the structure of the input table(s). | ||
|- | |- | ||
|protected | |protected | ||
|[[JDatabaseExporterMySQL::buildXml | |[[API17:JDatabaseExporterMySQL::buildXml|buildXml]] | ||
|Builds the XML data for the tables to export. | |Builds the XML data for the tables to export. | ||
|- | |- | ||
|protected | |protected | ||
|[[JDatabaseExporterMySQL::buildXmlStructure | |[[API17:JDatabaseExporterMySQL::buildXmlStructure|buildXmlStructure]] | ||
|Builds the XML structure to export. | |Builds the XML structure to export. | ||
|- | |- | ||
|protected | |protected | ||
|[[JDatabaseExporterMySQL::getColumns | |[[API17:JDatabaseExporterMySQL::getColumns|getColumns]] | ||
|Get the details list of columns for a table. | |Get the details list of columns for a table. | ||
|- | |- | ||
|protected | |protected | ||
|[[JDatabaseExporterMySQL::getGenericTableName | |[[API17:JDatabaseExporterMySQL::getGenericTableName|getGenericTableName]] | ||
|Get the generic name of the table, converting the database prefix to the wildcard string. | |Get the generic name of the table, converting the database prefix to the wildcard string. | ||
|- | |- | ||
|protected | |protected | ||
|[[JDatabaseExporterMySQL::getKeys | |[[API17:JDatabaseExporterMySQL::getKeys|getKeys]] | ||
|Get the details list of keys for a table. | |Get the details list of keys for a table. | ||
|- | |- | ||
| Line 67: | Line 67: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JDatabaseExporterMySQL source code''' on [[jplatform:database/database/mysqlexporter.php|BitBucket]] | * {{JVer|11.1}} '''JDatabaseExporterMySQL source code''' on [[jplatform:database/database/mysqlexporter.php|BitBucket]] | ||
* {{JVer|11.1}} Subpackage [[Subpackage Database | * {{JVer|11.1}} Subpackage [[API17:Subpackage Database|Database]] | ||
* [[JDatabaseExporterMySQL|Other versions of JDatabaseExporterMySQL]] | * [[API17:JDatabaseExporterMySQL|Other versions of JDatabaseExporterMySQL]] | ||
{{SeeAlso:JDatabaseExporterMySQL}} | {{SeeAlso:JDatabaseExporterMySQL}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
Revision as of 01:03, 12 May 2013
JDatabaseExporterMySQL
Description
Template:Description:JDatabaseExporterMySQL [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Constructor. |
| public | __toString | Magic function to exports the data to a string. |
| public | asXml | Set the output option for the exporter to XML format. |
| public | check | Checks if all data and options are in order prior to exporting. |
| public | from | Specifies a list of table names to export. |
| public | setDbo | Sets the database connector to use for exporting structure and/or data from MySQL. |
| public | withStructure | Sets an internal option to export the structure of the input table(s). |
| protected | buildXml | Builds the XML data for the tables to export. |
| protected | buildXmlStructure | Builds the XML structure to export. |
| protected | getColumns | Get the details list of columns for a table. |
| protected | getGenericTableName | Get the generic name of the table, converting the database prefix to the wildcard string. |
| protected | getKeys | Get the details list of keys for a table. |
- Defined in libraries/joomla/database/database/mysqlexporter.php
Importing
jimport( 'joomla.database.database.mysqlexporter' );
See also
JDatabaseExporterMySQL source code on BitBucket
Subpackage Database- Other versions of JDatabaseExporterMySQL
Template:SeeAlso:JDatabaseExporterMySQL [Edit See Also]
User contributed notes
<CodeExamplesForm />