Class JDatabaseImporterMysqli

Description

MySQLi import driver.

  • since: 11.1

Located in /libraries/joomla/database/importer/mysqli.php (line 19)

JDatabaseImporter
   |
   --JDatabaseImporterMysqli
Direct descendents
Class Description
 class JDatabaseImporterMysql MySQL import driver.
Method Summary
 string getAddColumnSQL (string $table, SimpleXMLElement $field)
 string getAddKeySQL (string $table, array $keys)
 array getAlterTableSQL (SimpleXMLElement $structure)
 string getChangeColumnSQL (string $table, SimpleXMLElement $field)
 string getColumnSQL (SimpleXMLElement $field)
 string getDropKeySQL (string $table, string $name)
 string getDropPrimaryKeySQL (string $table)
 array getKeyLookup (array $keys)
 string getKeySQL (array $columns)
Variables
Methods
check (line 29)

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

  • return: Method supports chaining.
  • since: 11.1
  • throws: Exception if an error is encountered.
  • access: public

Redefinition of:
JDatabaseImporter::check()
Checks if all data and options are in order prior to exporting.

Redefined in descendants as:
getAddColumnSQL (line 56)

Get the SQL syntax to add a column.

  • since: 11.1
  • access: protected
string getAddColumnSQL (string $table, SimpleXMLElement $field)
  • string $table: The table name.
  • SimpleXMLElement $field: The XML field definition.
getAddKeySQL (line 71)

Get the SQL syntax to add a key.

  • since: 11.1
  • access: protected
string getAddKeySQL (string $table, array $keys)
  • string $table: The table name.
  • array $keys: An array of the fields pertaining to this key.
getAlterTableSQL (line 85)

Get alters for table if there is a difference.

  • since: 11.1
  • access: protected
array getAlterTableSQL (SimpleXMLElement $structure)
  • SimpleXMLElement $structure: The XML structure pf the table.
getChangeColumnSQL (line 235)

Get the syntax to alter a column.

  • since: 11.1
  • access: protected
string getChangeColumnSQL (string $table, SimpleXMLElement $field)
  • string $table: The name of the database table to alter.
  • SimpleXMLElement $field: The XML definition for the field.
getColumnSQL (line 250)

Get the SQL syntax for a single column that would be included in a table create or alter statement.

  • since: 11.1
  • access: protected
string getColumnSQL (SimpleXMLElement $field)
  • SimpleXMLElement $field: The XML field definition.
getDropKeySQL (line 306)

Get the SQL syntax to drop a key.

  • since: 11.1
  • access: protected
string getDropKeySQL (string $table, string $name)
  • string $table: The table name.
  • string $name: The name of the key to drop.
getDropPrimaryKeySQL (line 320)

Get the SQL syntax to drop a key.

  • since: 11.1
  • access: protected
string getDropPrimaryKeySQL (string $table)
  • string $table: The table name.
getKeyLookup (line 335)

Get the details list of keys for a table.

  • return: The lookup array. array({key name} => array(object, ...))
  • since: 11.1
  • throws: Exception
  • access: protected
array getKeyLookup (array $keys)
  • array $keys: An array of objects that comprise the keys for the table.
getKeySQL (line 371)

Get the SQL syntax for a key.

  • since: 11.1
  • access: protected
string getKeySQL (array $columns)
  • array $columns: An array of SimpleXMLElement objects comprising the key.

Inherited Methods

Inherited From JDatabaseImporter

 JDatabaseImporter::__construct()
 JDatabaseImporter::asXml()
 JDatabaseImporter::check()
 JDatabaseImporter::from()
 JDatabaseImporter::getDropColumnSQL()
 JDatabaseImporter::getRealTableName()
 JDatabaseImporter::mergeStructure()
 JDatabaseImporter::setDbo()
 JDatabaseImporter::withStructure()

Documentation generated on Tue, 19 Nov 2013 15:09:12 +0100 by phpDocumentor 1.4.3