ExportPlugin
abstract class ExportPlugin (View source)
Provides a common interface that will have to be implemented by all of the export plugins. Some of the plugins will also implement other public methods, but those are not declared here, because they are not implemented by all export plugins.
Properties
protected ExportPluginProperties | $properties | PhpMyAdmin\Properties\Plugins\ExportPluginProperties object containing the specific export plugin type properties | |
Relation | $relation | ||
protected Export | $export | ||
protected Transformations | $transformations |
Methods
No description
Outputs export header
Outputs export footer
Outputs database header
Outputs database footer
Outputs CREATE DATABASE statement
Outputs the content of a table
Exports routines (procedures and functions)
Exports events
Outputs for raw query
Outputs table's structure
Exports metadata from Configuration Storage
Returns a stand-in CREATE definition to resolve view dependencies
Outputs triggers
Initialize the specific variables for each export plugin
Gets the export specific format plugin properties
Sets the export plugins properties and is implemented by each export plugin
Initialize aliases
Search for alias of a identifier.
Gives the relation string and also substitutes with alias if required in this format: [Foreign Table] ([Foreign Field])
Details
__construct()
abstract bool
exportHeader()
Outputs export header
abstract bool
exportFooter()
Outputs export footer
abstract bool
exportDBHeader(string $db, string $db_alias = '')
Outputs database header
abstract bool
exportDBFooter(string $db)
Outputs database footer
abstract bool
exportDBCreate(string $db, string $export_type, string $db_alias = '')
Outputs CREATE DATABASE statement
abstract bool
exportData(string $db, string $table, string $crlf, string $error_url, string $sql_query, array $aliases = [])
Outputs the content of a table
bool
exportRoutines(string $db, array $aliases = [])
Exports routines (procedures and functions)
bool
exportEvents(string $db)
Exports events
bool
exportRawQuery(string $err_url, string $sql_query, string $crlf)
Outputs for raw query
bool
exportStructure(string $db, string $table, string $crlf, string $error_url, string $export_mode, string $export_type, bool $relation = false, bool $comments = false, bool $mime = false, bool $dates = false, array $aliases = [])
Outputs table's structure
bool
exportMetadata(string $db, string|array $tables, array $metadataTypes)
Exports metadata from Configuration Storage
string
getTableDefStandIn(string $db, string $view, string $crlf, array $aliases = [])
Returns a stand-in CREATE definition to resolve view dependencies
protected string
getTriggers(string $db, string $table)
Outputs triggers
protected void
initSpecificVariables()
Initialize the specific variables for each export plugin
ExportPluginProperties
getProperties()
Gets the export specific format plugin properties
abstract protected void
setProperties()
Sets the export plugins properties and is implemented by each export plugin
void
initAlias(array $aliases, string $db, string $table = null)
Initialize aliases
string
getAlias(array $aliases, string $id, string $type = 'dbtblcol', string $db = '', string $tbl = '')
Search for alias of a identifier.
string
getRelationString(array $res_rel, string $field_name, string $db, array $aliases = [])
Gives the relation string and also substitutes with alias if required in this format: [Foreign Table] ([Foreign Field])