phpBB API Documentation
Class

phpbb\install\module\requirements\task\check_filesystem

class check_filesystem extends task_base

Checks filesystem requirements

Methods

__construct(filesystem_interface $filesystem, iohandler_interface $response, string $phpbb_root_path, string $php_ext, bool $check_config_php = true)

Constructor

is_essential()

Checks if the task is essential to install phpBB or it can be skipped

from task_base
bool check_requirements()

Checks requirements for the tasks

from task_base
run()

Executes the task

static int get_step_count()

Returns the number of steps the task contains

string get_task_lang_name()

Returns the language key of the name of the task

Details

at line 55
public __construct(filesystem_interface $filesystem, iohandler_interface $response, string $phpbb_root_path, string $php_ext, bool $check_config_php = true)

Constructor

Parameters

filesystem_interface $filesystem filesystem handler
iohandler_interface $response response helper
string $phpbb_root_path relative path to phpBB's root
string $php_ext extension of php files
bool $check_config_php Whether or not to check if config.php is writable

in task_base at line 39
public 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
public 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.

Return Value

bool true if the task's requirements are met

at line 103
public run()

Executes the task

at line 267
static public 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.

Return Value

int The number of steps that the task contains

at line 275
public string get_task_lang_name()

Returns the language key of the name of the task

Return Value

string