class oracle_extractor extends base_extractor

Properties

protected string $phpbb_root_path 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(string $phpbb_root_path, 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()

Closes file and/or dumps download data

null
flush(string $data)

Writes data to file/download content

null
write_table(string $table_name)

Extracts database table structure

null
write_data(string $table_name)

Extracts data from database table

null
write_start(string $table_prefix)

Writes header comments to the database backup

Details

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

Constructor

Parameters

string $phpbb_root_path
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

in base_extractor at line 183
null write_end()

Closes file and/or dumps download data

Return Value

null

Exceptions

extractor_not_initialized_exception

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

at line 23
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

at line 173
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

at line 249
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