JDatabaseExporterMySQL: Difference between revisions
From Joomla! Documentation
m →User contributed notes: bad link repair |
m preparing for archive only |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
=={{JVer|11.1}} JDatabaseExporterMySQL== | =={{JVer|11.1}} JDatabaseExporterMySQL== | ||
===Description=== | ===Description=== | ||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
| Line 14: | Line 12: | ||
|- | |- | ||
|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 65: | ||
===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]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabaseExporterMySQL | category=JDatabaseExporterMySQL | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| Line 84: | Line 80: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude> | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 02:35, 25 March 2017
JDatabaseExporterMySQL
Description
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
User contributed notes
Code Examples