class update_helper

General helper functionality for the updater

Properties

protected string $path_to_new_files
protected string $path_to_old_files
protected string $phpbb_root_path

Methods

__construct(string $phpbb_root_path)

Constructor

string
get_path_to_new_update_files()

Returns path to new update files

string
get_path_to_old_update_files()

Returns path to new update files

include_file(string $filename)

Includes the updated file if available

int|bool
phpbb_version_compare(string $version_number1, string $version_number2, string|null $operator = null)

Customized version_compare()

Details

at line 41
__construct(string $phpbb_root_path)

Constructor

Parameters

string $phpbb_root_path

at line 53
string get_path_to_new_update_files()

Returns path to new update files

Return Value

string

at line 63
string get_path_to_old_update_files()

Returns path to new update files

Return Value

string

at line 73
include_file(string $filename)

Includes the updated file if available

Parameters

string $filename

Path to the file relative to phpBB root path

at line 93
int|bool phpbb_version_compare(string $version_number1, string $version_number2, string|null $operator = null)

Customized version_compare()

Parameters

string $version_number1
string $version_number2
string|null $operator

Return Value

int|bool

The returned value is identical to the PHP build-in function version_compare()