check_server_environment
class check_server_environment extends task_base
Installer task that checks if the server meets phpBB requirements
Properties
protected bool | $is_essential | from task_base | |
protected database | $database_helper | ||
protected iohandler_interface | $response_helper | ||
protected bool | $tests_passed |
Methods
Checks if the task is essential to install phpBB or it can be skipped
Executes the task
Sets $this->tests_passed
Check if the requirements for PHP version is met
Checks if the installed PHP has getimagesize() available
Checks if the installed PHP supports PCRE
Checks whether PHP's JSON extension is available or not
Checks whether PHP's mbstring extension is available or not
Checks whether or not the XML PHP extension is available (Required by the text formatter)
Check if any supported DBMS is available
Returns the number of steps the task contains
Returns the language key of the name of the task
Details
at line 42
__construct(database $database_helper, iohandler_interface $response)
Constructor
in
task_base at line 39
bool
is_essential()
Checks if the task is essential to install phpBB or it can be skipped
Note: Please note that all the non-essential modules have to implement check_requirements() method.
in
task_base at line 49
bool
check_requirements()
Checks requirements for the tasks
Note: Only need to be implemented for non-essential tasks, as essential tasks requirements should be checked in the requirements install module.
at line 55
run()
Executes the task
at line 91
protected
set_test_passed(bool $is_passed)
Sets $this->tests_passed
at line 100
protected
check_php_version()
Check if the requirements for PHP version is met
at line 116
protected
check_image_size()
Checks if the installed PHP has getimagesize() available
at line 132
protected
check_pcre()
Checks if the installed PHP supports PCRE
at line 148
protected
check_json()
Checks whether PHP's JSON extension is available or not
at line 164
protected
check_mbstring()
Checks whether PHP's mbstring extension is available or not
at line 180
protected
check_xml()
Checks whether or not the XML PHP extension is available (Required by the text formatter)
at line 196
protected
check_available_dbms()
Check if any supported DBMS is available
at line 214
static int
get_step_count()
Returns the number of steps the task contains
This is a helper method to provide a better progress bar for the front-end.
at line 222
string
get_task_lang_name()
Returns the language key of the name of the task