Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JDatabaseImporter
+ Graphe d'héritage de JDatabaseImporter:

Fonctions membres publiques

 __construct ()
 
 asXml ()
 
 check ()
 
 from ($from)
 
 mergeStructure ()
 
 setDbo (JDatabaseDriver $db)
 
 withStructure ($setting=true)
 

Fonctions membres protégées

 getDropColumnSql ($table, $name)
 
 getRealTableName ($table)
 

Attributs protégés

 $cache = array()
 
 $db = null
 
 $from = array()
 
 $asFormat = 'xml'
 
 $options = null
 

Description détaillée

Joomla Platform Database Importer Class

Depuis
3.0.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

Constructor.

Sets up the default options for the exporter.

Depuis
3.2.0

Documentation des fonctions membres

◆ asXml()

asXml ( )

Set the output option for the exporter to XML format.

Renvoie
JDatabaseImporter Method supports chaining.
Depuis
3.2.0

◆ check()

check ( )
abstract

Checks if all data and options are in order prior to exporting.

Renvoie
JDatabaseImporter Method supports chaining.
Depuis
3.2.0
Exceptions
Exceptionif an error is encountered.

◆ from()

from (   $from)

Specifies the data source to import.

Paramètres
mixed$fromThe data source to import.
Renvoie
JDatabaseImporter Method supports chaining.
Depuis
3.2.0

◆ getDropColumnSql()

getDropColumnSql (   $table,
  $name 
)
protected

Get the SQL syntax to drop a column.

Paramètres
string$tableThe table name.
string$nameThe name of the field to drop.
Renvoie
string
Depuis
3.2.0

Références $name.

◆ getRealTableName()

getRealTableName (   $table)
protected

Get the real name of the table, converting the prefix wildcard string if present.

Paramètres
string$tableThe name of the table.
Renvoie
string The real name of the table.
Depuis
3.2.0

Références $prefix.

◆ mergeStructure()

mergeStructure ( )

Merges the incoming structure definition with the existing structure.

Renvoie
void
Note
Currently only supports XML format.
Depuis
3.2.0
Exceptions
RuntimeExceptionon error.

Références $prefix, et $query.

◆ setDbo()

setDbo ( JDatabaseDriver  $db)

Sets the database connector to use for exporting structure and/or data.

Paramètres
JDatabaseDriver$dbThe database connector.
Renvoie
JDatabaseImporter Method supports chaining.
Depuis
3.2.0

Références $db.

◆ withStructure()

withStructure (   $setting = true)

Sets an internal option to merge the structure based on the input data.

Paramètres
boolean$settingTrue to export the structure, false to not.
Renvoie
JDatabaseImporter Method supports chaining.
Depuis
3.2.0

Documentation des champs

◆ $asFormat

$asFormat = 'xml'
protected

◆ $cache

$cache = array()
protected

◆ $db

$db = null
protected

◆ $from

$from = array()
protected

◆ $options

$options = null
protected

La documentation de cette classe a été générée à partir du fichier suivant :