[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/database/src/Mysqli/ -> MysqliImporter.php (summary)

Part of the Joomla Framework Database Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 437 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MysqliImporter:: (10 methods):
  check()
  xmlToCreate()
  getAddKeySql()
  getAlterTableSql()
  getChangeColumnSql()
  getColumnSql()
  getDropKeySql()
  getDropPrimaryKeySql()
  getKeyLookup()
  getKeySql()


Class: MysqliImporter  - X-Ref

MySQLi Database Importer.

check()   X-Ref
Checks if all data and options are in order prior to exporting.

return: $this

xmlToCreate(\SimpleXMLElement $table)   X-Ref
Get the SQL syntax to add a table.

param: \SimpleXMLElement  $table  The table information.
return: string

getAddKeySql($table, $keys)   X-Ref
Get the SQL syntax to add a key.

param: string  $table  The table name.
param: array   $keys   An array of the fields pertaining to this key.
return: string

getAlterTableSql(\SimpleXMLElement $structure)   X-Ref
Get alters for table if there is a difference.

param: \SimpleXMLElement  $structure  The XML structure of the table.
return: array

getChangeColumnSql($table, \SimpleXMLElement $field)   X-Ref
Get the syntax to alter a column.

param: string             $table  The name of the database table to alter.
param: \SimpleXMLElement  $field  The XML definition for the field.
return: string

getColumnSql(\SimpleXMLElement $field)   X-Ref
Get the SQL syntax for a single column that would be included in a table create or alter statement.

param: \SimpleXMLElement  $field  The XML field definition.
return: string

getDropKeySql($table, $name)   X-Ref
Get the SQL syntax to drop a key.

param: string  $table  The table name.
param: string  $name   The name of the key to drop.
return: string

getDropPrimaryKeySql($table)   X-Ref
Get the SQL syntax to drop a key.

param: string  $table  The table name.
return: string

getKeyLookup($keys)   X-Ref
Get the details list of keys for a table.

param: array  $keys  An array of objects that comprise the keys for the table.
return: array  The lookup array. array({key name} => array(object, ...))

getKeySql($columns)   X-Ref
Get the SQL syntax for a key.

param: array  $columns  An array of SimpleXMLElement objects comprising the key.
return: string



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer