phpBB API Documentation
Class

phpbb\install\helper\update_helper

class update_helper

General helper functionality for the updater

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
public __construct(string $phpbb_root_path)

Constructor

Parameters

string $phpbb_root_path

at line 53
public string get_path_to_new_update_files()

Returns path to new update files

Return Value

string

at line 63
public string get_path_to_old_update_files()

Returns path to new update files

Return Value

string

at line 73
public 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
public 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()