PHP Class PMA\libraries\plugins\export\ExportJson

Inheritance: extends PMA\libraries\plugins\ExportPlugin
Afficher le fichier Open project: phpmyadmin/phpmyadmin

Méthodes publiques

Méthode Description
__construct ( ) Constructor
encode ( mixed $data ) : string Encodes the data into JSON
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 JSON format
exportFooter ( ) : boolean Outputs export footer
exportHeader ( ) : boolean Outputs export header

Méthodes protégées

Méthode Description
setProperties ( ) : void Sets the export JSON properties

Method Details

__construct() public méthode

Constructor
public __construct ( )

encode() public méthode

Encodes the data into JSON
public encode ( mixed $data ) : string
$data mixed Data to encode
Résultat string

exportDBCreate() public méthode

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
Résultat boolean Whether it succeeded

exportDBFooter() public méthode

Outputs database footer
public exportDBFooter ( string $db ) : boolean
$db string Database name
Résultat boolean Whether it succeeded

exportDBHeader() public méthode

Outputs database header
public exportDBHeader ( string $db, string $db_alias = '' ) : boolean
$db string Database name
$db_alias string Aliases of db
Résultat boolean Whether it succeeded

exportData() public méthode

Outputs the content of a table in JSON 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
Résultat boolean Whether it succeeded

exportFooter() public méthode

Outputs export footer
public exportFooter ( ) : boolean
Résultat boolean Whether it succeeded

exportHeader() public méthode

Outputs export header
public exportHeader ( ) : boolean
Résultat boolean Whether it succeeded

setProperties() protected méthode

Sets the export JSON properties
protected setProperties ( ) : void
Résultat void