module_base
abstract class module_base implements module_interface
Base class for installer module
Properties
protected config | $install_config | ||
protected iohandler_interface | $iohandler | ||
protected bool | $is_essential | ||
protected ordered_service_collection | $task_collection | Array of tasks for installer module |
|
protected array | $task_step_count | ||
protected bool | $allow_progress_bar |
Methods
Installer module constructor
Checks if the execution of the module is essential to install phpBB or it can be skipped
Checks requirements for the tasks
Executes the task
Returns the next task's name
Returns the number of tasks in the module
Details
at line 65
__construct(ordered_service_collection $tasks, bool $essential = true, bool $allow_progress_bar = true)
Installer module constructor
at line 78
setup(config $config, iohandler_interface $iohandler)
Dependency getter
at line 87
bool
is_essential()
Checks if the execution of the module 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.
at line 97
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 105
null
run()
Executes the task
at line 190
protected string
recover_progress()
Returns the next task's name
at line 199
int
get_step_count()
Returns the number of tasks in the module