module
class module implements tool_interface
Migration module management tool
Properties
protected service | $cache | ||
protected driver_interface | $db | ||
protected user | $user | ||
protected module_manager | $module_manager | ||
protected string | $phpbb_root_path | ||
protected string | $php_ext | ||
protected string | $modules_table | ||
protected array | $module_categories |
Methods
Constructor
Retrieve a short name used for commands in migrations.
Module Exists
Module Add
Module Remove
Reverse an original install action
Wrapper for \acp_modules::get_module_infos()
Get the list of installed module categories key - module_id value - module_langname
Get parent module id
Details
at line 58
__construct(driver_interface $db, service $cache, user $user, module_manager $module_manager, string $phpbb_root_path, string $php_ext, string $modules_table)
Constructor
at line 72
string
get_name()
Retrieve a short name used for commands in migrations.
at line 92
bool
exists(string $class, int|string|bool $parent, int|string $module, bool $lazy = false)
Module Exists
Check if a module exists
at line 183
null
add(string $class, int|string $parent = 0, array $data = array())
Module Add
Add a new module
at line 360
null
remove(string $class, int|string|bool $parent = 0, int|string $module = '')
Module Remove
Remove a module
at line 435
null
reverse()
Reverse an original install action
First argument is the original call to the class (e.g. add, remove) After the first argument, send the original arguments to the function in the original call
at line 471
protected array
get_module_info(string $class, string $basename)
Wrapper for \acp_modules::get_module_infos()
at line 490
protected null
get_categories_list()
Get the list of installed module categories key - module_id value - module_langname
at line 517
mixed
get_parent_module_id(string|int $parent_id, int|string|array $data = '', bool $throw_exception = true)
Get parent module id