PHP Класс PMA\libraries\plugins\export\ExportXml

Наследование: extends PMA\libraries\plugins\ExportPlugin
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) Constructor
exportDBCreate ( string $db, string $export_type, string $db_alias = '' ) : boolean Outputs CREATE DATABASE statement
exportDBFooter ( string $db ) : boolean Outputs database footer
exportDBHeader ( string $db, string $db_alias = '' ) : boolean Outputs database header
exportData ( string $db, string $table, string $crlf, string $error_url, string $sql_query, array $aliases = [] ) : boolean Outputs the content of a table in XML format
exportFooter ( ) : boolean Outputs export footer
exportHeader ( ) : boolean Outputs export header. It is the first method to be called, so all the required variables are initialized here.

Защищенные методы

Метод Описание
initSpecificVariables ( ) : void Initialize the local variables that are used for export PDF
setProperties ( ) : void Sets the export XML properties

Приватные методы

Метод Описание
_exportDefinitions ( string $db, string $type, string $dbitype, array $names ) : string Generates output for SQL defintions
_exportRoutines ( string $db, string $type, string $dbitype ) : string Generates output for SQL defintions of routines
_getTable ( ) : string Gets the table name
_getTables ( ) : array Gets the table names
_setTable ( string $table ) : void Sets the table name
_setTables ( array $tables ) : void Sets the table names

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

exportDBCreate() публичный Метод

Outputs CREATE DATABASE statement
public exportDBCreate ( string $db, string $export_type, string $db_alias = '' ) : boolean
$db string Database name
$export_type string 'server', 'database', 'table'
$db_alias string Aliases of db
Результат boolean Whether it succeeded

exportDBFooter() публичный Метод

Outputs database footer
public exportDBFooter ( string $db ) : boolean
$db string Database name
Результат boolean Whether it succeeded

exportDBHeader() публичный Метод

Outputs database header
public exportDBHeader ( string $db, string $db_alias = '' ) : boolean
$db string Database name
$db_alias string Aliases of db
Результат boolean Whether it succeeded

exportData() публичный Метод

Outputs the content of a table in XML format
public exportData ( string $db, string $table, string $crlf, string $error_url, string $sql_query, array $aliases = [] ) : boolean
$db string database name
$table string table name
$crlf string the end of line sequence
$error_url string the url to go back in case of error
$sql_query string SQL query for obtaining data
$aliases array Aliases of db/table/columns
Результат boolean Whether it succeeded

exportFooter() публичный Метод

Outputs export footer
public exportFooter ( ) : boolean
Результат boolean Whether it succeeded

exportHeader() публичный Метод

Outputs export header. It is the first method to be called, so all the required variables are initialized here.
public exportHeader ( ) : boolean
Результат boolean Whether it succeeded

initSpecificVariables() защищенный Метод

Initialize the local variables that are used for export PDF
protected initSpecificVariables ( ) : void
Результат void

setProperties() защищенный Метод

Sets the export XML properties
protected setProperties ( ) : void
Результат void