class sqlite3_extractor extends base_extractor

Properties

protected temp $temp from  base_extractor
protected request_interface $request from  base_extractor
protected driver_interface $db from  base_extractor
protected bool $download from  base_extractor
protected bool $store from  base_extractor
protected int $time from  base_extractor
protected string $format from  base_extractor
protected resource $fp from  base_extractor
protected string $write from  base_extractor
protected string $close from  base_extractor
protected bool $run_comp from  base_extractor
protected bool $is_initialized from  base_extractor

Methods

__construct(temp $temp, request_interface $request, driver_interface $db)

Constructor

null
init_extractor(string $format, string $filename, int $time, bool $download = false, bool $store = false)

Start the extraction of the database

null
write_end()

Writes closing line(s) to database backup

null
flush(string $data)

Writes data to file/download content

null
write_start(string $table_prefix)

Writes header comments to the database backup

null
write_table(string $table_name)

Extracts database table structure

null
write_data(string $table_name)

Extracts data from database table

Details

in base_extractor at line 91
__construct(temp $temp, request_interface $request, driver_interface $db)

Constructor

Parameters

temp $temp
request_interface $request
driver_interface $db

in base_extractor at line 104
null init_extractor(string $format, string $filename, int $time, bool $download = false, bool $store = false)

Start the extraction of the database

This function initialize the database extraction. It is required to call this function before calling any other extractor functions.

Parameters

string $format
string $filename
int $time
bool $download
bool $store

Return Value

null

Exceptions

invalid_format_exception

when $format is invalid

at line 141
null write_end()

Writes closing line(s) to database backup

Return Value

null

Exceptions

extractor_not_initialized_exception

when calling this function before init_extractor()

in base_extractor at line 212
null flush(string $data)

Writes data to file/download content

Parameters

string $data

Return Value

null

Exceptions

extractor_not_initialized_exception

when calling this function before init_extractor()

at line 23
null write_start(string $table_prefix)

Writes header comments to the database backup

Parameters

string $table_prefix

prefix of phpBB database tables

Return Value

null

Exceptions

extractor_not_initialized_exception

when calling this function before init_extractor()

at line 42
null write_table(string $table_name)

Extracts database table structure

Parameters

string $table_name

name of the database table

Return Value

null

Exceptions

extractor_not_initialized_exception

when calling this function before init_extractor()

at line 92
null write_data(string $table_name)

Extracts data from database table

Parameters

string $table_name

name of the database table

Return Value

null

Exceptions

extractor_not_initialized_exception

when calling this function before init_extractor()