Export
class Export (View source)
PhpMyAdmin\Export\Export class
Properties
string | $dumpBuffer | ||
int | $dumpBufferLength | ||
array | $dumpBufferObjects |
Methods
Sets a session variable upon a possible fatal error during export
Detect ob_gzhandler
Detect whether gzencode is needed; it might not be needed if the server is already compressing by itself
Output handler for all exports, if needed buffering, it stores data into $this->dumpBuffer, otherwise it prints them out.
Returns HTML containing the footer for a displayed export
Computes the memory limit for export
Open the export file
Close the export file
Compress the export buffer
Saves the dump buffer for a particular table in an array Used in separate files export
Returns HTML containing the header for a displayed export
Export at the server level
Export at the database level
Export at the table level
Loads correct page after doing export
Merge two alias arrays, if array1 and array2 have conflicting alias then array2 value is used if it is non empty otherwise array1 value.
Releases table locks
Returns all the metadata types that can be exported with a database or a table
Returns the checked clause, depending on the presence of key in array
get all the export options and verify call and include the appropriate Schema Class depending on $export_type
No description
Details
__construct(DatabaseInterface $dbi)
No description
void
shutdown()
Sets a session variable upon a possible fatal error during export
bool
isGzHandlerEnabled()
Detect ob_gzhandler
bool
gzencodeNeeded()
Detect whether gzencode is needed; it might not be needed if the server is already compressing by itself
bool
outputHandler(string $line)
Output handler for all exports, if needed buffering, it stores data into $this->dumpBuffer, otherwise it prints them out.
string
getHtmlForDisplayedExportFooter(ExportType $exportType, string $db, string $table)
Returns HTML containing the footer for a displayed export
int
getMemoryLimit()
Computes the memory limit for export
string
getFinalFilename(ExportPlugin $exportPlugin, string $compression, string $filename)
No description
string
getMimeType(ExportPlugin $exportPlugin, string $compression)
No description
void
rememberFilename(Config $config, ExportType $exportType, string $filenameTemplate)
No description
array
openFile(string $filename, bool $quickExport)
Open the export file
Message
closeFile(resource $fileHandle, string $dumpBuffer, string $saveFilename)
Close the export file
array|string|bool
compress(array|string $dumpBuffer, string $compression, string $filename)
Compress the export buffer
void
saveObjectInBuffer(string $objectName, bool $append = false)
Saves the dump buffer for a particular table in an array Used in separate files export
string
getHtmlForDisplayedExportHeader(ExportType $exportType, string $db, string $table)
Returns HTML containing the header for a displayed export
void
exportServer(string|array $dbSelect, ExportPlugin $exportPlugin, array $aliases, string $separateFiles)
Export at the server level
void
exportDatabase(DatabaseName $db, array $tables, array $tableStructure, array $tableData, ExportPlugin $exportPlugin, array $aliases, string $separateFiles)
Export at the database level
static void
exportRaw(ExportPlugin $exportPlugin, string|null $db, string $sqlQuery)
Export a raw query
void
exportTable(string $db, string $table, ExportPlugin $exportPlugin, string|null $allrows, string $limitTo, string $limitFrom, string $sqlQuery, array $aliases)
Export at the table level
string
getPageLocationAndSaveMessage(ExportType $exportType, Message $message)
Loads correct page after doing export
array
mergeAliases(array $aliases1, array $aliases2)
Merge two alias arrays, if array1 and array2 have conflicting alias then array2 value is used if it is non empty otherwise array1 value.
void
lockTables(DatabaseName $db, array $tables, string $lockType = 'WRITE')
Locks tables
void
unlockTables()
Releases table locks
array
getMetadataTypes()
Returns all the metadata types that can be exported with a database or a table
string
getCheckedClause(string $key, array $array)
Returns the checked clause, depending on the presence of key in array
array
getExportSchemaInfo(DatabaseName $db, string $format)
get all the export options and verify call and include the appropriate Schema Class depending on $export_type
array
getTableNames(string $database)
No description