Class JDatabaseImporterMysqli
-
JDatabaseImporter
-
JDatabaseImporterMysqli
Methods summary
public
JDatabaseImporterMysqli
|
#
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.
Returns
Throws
Since
11.1
|
protected
string
|
#
xmlToCreate( SimpleXMLElement $table )
Get the SQL syntax to add a table.
Get the SQL syntax to add a table.
Parameters
Returns
string
Throws
Since
11.1
|
protected
string
|
#
getAddColumnSql( string $table, SimpleXMLElement $field )
Get the SQL syntax to add a column.
Get the SQL syntax to add a column.
Parameters
- $table
string - $table The table name.
- $field
SimpleXMLElement - $field The XML field definition.
Returns
string
Since
11.1
|
protected
string
|
#
getAddKeySql( string $table, array $keys )
Get the SQL syntax to add a key.
Get the SQL syntax to add a key.
Parameters
- $table
string - $table The table name.
- $keys
array - $keys An array of the fields pertaining to this key.
Returns
string
Since
11.1
|
protected
array
|
#
getAlterTableSql( SimpleXMLElement $structure )
Get alters for table if there is a difference.
Get alters for table if there is a difference.
Parameters
Returns
array
Since
11.1
|
protected
string
|
#
getChangeColumnSql( string $table, SimpleXMLElement $field )
Get the syntax to alter a column.
Get the syntax to alter a column.
Parameters
- $table
string - $table The name of the database table to alter.
- $field
SimpleXMLElement - $field The XML definition for the field.
Returns
string
Since
11.1
|
protected
string
|
#
getColumnSql( SimpleXMLElement $field )
Get the SQL syntax for a single column that would be included in a table
create or alter statement.
Get the SQL syntax for a single column that would be included in a table
create or alter statement.
Parameters
Returns
string
Since
11.1
|
protected
string
|
#
getDropKeySql( string $table, string $name )
Get the SQL syntax to drop a key.
Get the SQL syntax to drop a key.
Parameters
- $table
string - $table The table name.
- $name
string - $name The name of the key to drop.
Returns
string
Since
11.1
|
protected
string
|
#
getDropPrimaryKeySql( string $table )
Get the SQL syntax to drop a key.
Get the SQL syntax to drop a key.
Parameters
- $table
string - $table The table name.
Returns
string
Since
11.1
|
protected
array
|
#
getKeyLookup( array $keys )
Get the details list of keys for a table.
Get the details list of keys for a table.
Parameters
- $keys
array - $keys An array of objects that comprise the keys for the table.
Returns
array - The lookup array. array({key name} => array(object, ...))
Throws
Since
11.1
|
protected
string
|
#
getKeySql( array $columns )
Get the SQL syntax for a key.
Get the SQL syntax for a key.
Parameters
- $columns
array - $columns An array of SimpleXMLElement objects comprising the key.
Returns
string
Since
11.1
|
__construct()
,
asXml()
,
from()
,
getDropColumnSql()
,
getRealTableName()
,
mergeStructure()
,
setDbo()
,
withStructure()
Magic methods summary
Properties summary
$asFormat
,
$cache
,
$db
,
$from
,
$options