Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
setProperties ( ) : void | Sets the export JSON properties |
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 |
Результат | boolean | Whether it succeeded |
public exportHeader ( ) : boolean | ||
Результат | boolean | Whether it succeeded |
protected setProperties ( ) : void | ||
Результат | void |