aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/task_interface.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/task_interface.php')
-rw-r--r--phpBB/install/task_interface.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/install/task_interface.php b/phpBB/install/task_interface.php
index 6f0a01258f..14cde23a56 100644
--- a/phpBB/install/task_interface.php
+++ b/phpBB/install/task_interface.php
@@ -15,10 +15,23 @@ namespace phpbb\install;
/**
* Interface for installer tasks
+ *
+ * Note: The task service ID must match up with the namespace and class name.
+ * For example: if your task is located at \phpbb\install\module\module_name\task\task_name
+ * then the service ID must be installer.module_name.task_name.
*/
interface task_interface
{
/**
+ * Returns the number of steps the task contains
+ *
+ * This is a helper method to provide a better progress bar for the front-end.
+ *
+ * @return int The number of steps that the task contains
+ */
+ static public function get_step_count();
+
+ /**
* 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()