Method | Description | |
---|---|---|
__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 MediaWiki format | |
exportFooter ( ) : boolean | Outputs export footer | |
exportHeader ( ) : boolean | Outputs export header | |
exportStructure ( string $db, string $table, string $crlf, string $error_url, string $export_mode, string $export_type, boolean $do_relation = false, boolean $do_comments = false, boolean $do_mime = false, boolean $dates = false, array $aliases = [] ) : boolean | Outputs table's structure |
Method | Description | |
---|---|---|
setProperties ( ) : void | Sets the export MediaWiki properties |
Method | Description | |
---|---|---|
_exportCRLF ( ) : string | Outputs CRLF | |
_exportComment ( string $text = '' ) : string | Outputs comments containing info about the exported tables |
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 |
return | boolean | Whether it succeeded |
public exportHeader ( ) : boolean | ||
return | boolean | Whether it succeeded |
public exportStructure ( string $db, string $table, string $crlf, string $error_url, string $export_mode, string $export_type, boolean $do_relation = false, boolean $do_comments = false, boolean $do_mime = false, boolean $dates = false, 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 |
$export_mode | string | 'create_table','triggers','create_view', 'stand_in' |
$export_type | string | 'server', 'database', 'table' |
$do_relation | boolean | whether to include relation comments |
$do_comments | boolean | whether to include the pmadb-style column comments as comments in the structure; this is deprecated but the parameter is left here because export.php calls exportStructure() also for other export types which use this parameter |
$do_mime | boolean | whether to include mime comments |
$dates | boolean | whether to include creation/update/check dates |
$aliases | array | Aliases of db/table/columns |
return | boolean | Whether it succeeded |
protected setProperties ( ) : void | ||
return | void |