Liste de tous les membres
Documentation des constructeurs et destructeur
JDatabaseImporterMySQL::__construct |
( |
| ) |
|
Constructor.
Sets up the default options for the exporter.
- Depuis:
- 11.1
Documentation des fonctions membres
JDatabaseImporterMySQL::asXml |
( |
| ) |
|
Set the output option for the exporter to XML format.
- Renvoie:
- JDatabaseImporterMySQL Method supports chaining.
- Depuis:
- 11.1
JDatabaseImporterMySQL::check |
( |
| ) |
|
Checks if all data and options are in order prior to exporting.
- Renvoie:
- JDatabaseImporterMySQL Method supports chaining.
- Depuis:
- 11.1
- Exceptions:
-
Exception | if an error is encountered. |
Réimplémentée dans JDatabaseImporterMySQLi.
JDatabaseImporterMySQL::from |
( |
|
$from | ) |
|
Specifies the data source to import.
- Paramètres:
-
mixed | $from | The data source to import. |
- Renvoie:
- JDatabaseImporterMySQL Method supports chaining.
- Depuis:
- 11.1
JDatabaseImporterMySQL::getAddColumnSQL |
( |
|
$table, |
|
|
SimpleXMLElement |
$field |
|
) |
| |
|
protected |
Get the SQL syntax to add a column.
- Paramètres:
-
string | $table | The table name. |
SimpleXMLElement | $field | The XML field definition. |
- Renvoie:
- string
- Depuis:
- 11.1
JDatabaseImporterMySQL::getAddKeySQL |
( |
|
$table, |
|
|
|
$keys |
|
) |
| |
|
protected |
Get the SQL syntax to add a key.
- Paramètres:
-
string | $table | The table name. |
array | $keys | An array of the fields pertaining to this key. |
- Renvoie:
- string
- Depuis:
- 11.1
JDatabaseImporterMySQL::getAlterTableSQL |
( |
SimpleXMLElement |
$structure | ) |
|
|
protected |
Get alters for table if there is a difference.
- Paramètres:
-
SimpleXMLElement | $structure | The XML structure pf the table. |
- Renvoie:
- array
- Depuis:
- 11.1
Références $field, $i, et $name.
JDatabaseImporterMySQL::getChangeColumnSQL |
( |
|
$table, |
|
|
SimpleXMLElement |
$field |
|
) |
| |
|
protected |
Get the syntax to alter a column.
- Paramètres:
-
string | $table | The name of the database table to alter. |
SimpleXMLElement | $field | The XML definition for the field. |
- Renvoie:
- string
- Depuis:
- 11.1
JDatabaseImporterMySQL::getColumnSQL |
( |
SimpleXMLElement |
$field | ) |
|
|
protected |
Get the SQL syntax for a single column that would be included in a table create or alter statement.
- Paramètres:
-
SimpleXMLElement | $field | The XML field definition. |
- Renvoie:
- string
- Depuis:
- 11.1
Références null.
JDatabaseImporterMySQL::getDropColumnSQL |
( |
|
$table, |
|
|
|
$name |
|
) |
| |
|
protected |
Get the SQL syntax to drop a column.
- Paramètres:
-
string | $table | The table name. |
string | $name | The name of the field to drop. |
- Renvoie:
- string
- Depuis:
- 11.1
Références $name.
JDatabaseImporterMySQL::getDropKeySQL |
( |
|
$table, |
|
|
|
$name |
|
) |
| |
|
protected |
Get the SQL syntax to drop a key.
- Paramètres:
-
string | $table | The table name. |
string | $name | The name of the key to drop. |
- Renvoie:
- string
- Depuis:
- 11.1
Références $name.
JDatabaseImporterMySQL::getDropPrimaryKeySQL |
( |
|
$table | ) |
|
|
protected |
Get the SQL syntax to drop a key.
- Paramètres:
-
string | $table | The table name. |
- Renvoie:
- string
- Depuis:
- 11.1
JDatabaseImporterMySQL::getKeyLookup |
( |
|
$keys | ) |
|
|
protected |
Get the details list of keys for a table.
- Paramètres:
-
array | $keys | An array of objects that comprise the keys for the table. |
- Renvoie:
- array The lookup array. array({key name} => array(object, ...))
- Depuis:
- 11.1
- Exceptions:
-
Références $key.
JDatabaseImporterMySQL::getKeySQL |
( |
|
$columns | ) |
|
|
protected |
Get the SQL syntax for a key.
- Paramètres:
-
array | $columns | An array of SimpleXMLElement objects comprising the key. |
- Renvoie:
- string
- Depuis:
- 11.1
Références elseif.
JDatabaseImporterMySQL::getRealTableName |
( |
|
$table | ) |
|
|
protected |
Get the real name of the table, converting the prefix wildcard string if present.
- Paramètres:
-
string | $table | The name of the table. |
- Renvoie:
- string The real name of the table.
- Depuis:
- 11.1
JDatabaseImporterMySQL::mergeStructure |
( |
| ) |
|
|
protected |
Merges the incoming structure definition with the existing structure.
- Renvoie:
- void
- Note:
- Currently only supports XML format.
- Depuis:
- 11.1
- Exceptions:
-
Références $query.
Sets the database connector to use for exporting structure and/or data from MySQL.
- Paramètres:
-
- Renvoie:
- JDatabaseImporterMySQL Method supports chaining.
- Depuis:
- 11.1
Références $db.
JDatabaseImporterMySQL::withStructure |
( |
|
$setting = true | ) |
|
Sets an internal option to merge the structure based on the input data.
- Paramètres:
-
boolean | $setting | True to export the structure, false to not. |
- Renvoie:
- JDatabaseImporterMySQL Method supports chaining.
- Depuis:
- 11.1
Documentation des données membres
JDatabaseImporterMySQL::$asFormat = 'xml' |
|
protected |
JDatabaseImporterMySQL::$cache = array() |
|
protected |
JDatabaseImporterMySQL::$db = null |
|
protected |
JDatabaseImporterMySQL::$from = array() |
|
protected |
JDatabaseImporterMySQL::$options = null |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :