ExportLatex
class ExportLatex extends ExportPlugin (View source)
Handles the export for the Latex format
Properties
protected ExportPluginProperties | $properties | PhpMyAdmin\Properties\Plugins\ExportPluginProperties object containing the specific export plugin type properties | from ExportPlugin |
Relation | $relation | from ExportPlugin | |
protected Export | $export | from ExportPlugin | |
protected Transformations | $transformations | from ExportPlugin |
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 in JSON format
Exports routines (procedures and functions)
Outputs result raw query
Outputs table's structure
Exports metadata from Configuration Storage
Returns a stand-in CREATE definition to resolve view dependencies
Initialize the local variables that are used for export Latex
Gets the export specific format plugin properties
Sets the export Latex properties
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])
Escapes some special characters for use in TeX/LaTeX
Details
__construct()
bool
exportHeader()
Outputs export header
bool
exportFooter()
Outputs export footer
bool
exportDBHeader(string $db, string $db_alias = '')
Outputs database header
bool
exportDBFooter(string $db)
Outputs database footer
bool
exportDBCreate(string $db, string $export_type, string $db_alias = '')
Outputs CREATE DATABASE statement
bool
exportData(string $db, string $table, string $crlf, string $error_url, string $sql_query, array $aliases = [])
Outputs the content of a table in JSON format
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 result raw query
bool
exportStructure(string $db, string $table, string $crlf, string $error_url, string $export_mode, string $export_type, bool $do_relation = false, bool $do_comments = false, bool $do_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 local variables that are used for export Latex
ExportPluginProperties
getProperties()
Gets the export specific format plugin properties
protected void
setProperties()
Sets the export Latex properties
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])
static string
texEscape(string $string)
Escapes some special characters for use in TeX/LaTeX