module_manager
class module_manager
Properties
protected driver_interface | $cache | ||
protected driver_interface | $db | ||
protected manager | $extension_manager | ||
protected string | $modules_table | ||
protected string | $phpbb_root_path | ||
protected string | $php_ext |
Methods
__construct(driver_interface $cache, driver_interface $db, manager $ext_manager, string $modules_table, string $phpbb_root_path, string $php_ext)
Constructor
array
get_module_row(int $module_id, string $module_class)
Get row for specified module
array
get_module_infos(string $module_class, string $module = '', bool $use_all_available = false)
Get available module information from module files
array
get_module_branch(int $module_id, string $module_class, string $type = 'all', bool $include_module = true)
Get module branch
remove_cache_file(string $module_class)
Remove modules cache file
update_module_data(array $module_data)
Update/Add module
move_module(int $from_module_id, int $to_parent_id, string $module_class)
Move module around the tree
delete_module(int $module_id, string $module_class)
Remove module from tree
string
move_module_by(array $module_row, string $module_class, string $action = 'move_up', int $steps = 1)
Move module position by $steps up/down
Details
at line 61
__construct(driver_interface $cache, driver_interface $db, manager $ext_manager, string $modules_table, string $phpbb_root_path, string $php_ext)
Constructor
at line 81
array
get_module_row(int $module_id, string $module_class)
Get row for specified module
at line 111
array
get_module_infos(string $module_class, string $module = '', bool $use_all_available = false)
Get available module information from module files
at line 184
array
get_module_branch(int $module_id, string $module_class, string $type = 'all', bool $include_module = true)
Get module branch
at line 233
remove_cache_file(string $module_class)
Remove modules cache file
at line 248
update_module_data(array $module_data)
Update/Add module
at line 346
move_module(int $from_module_id, int $to_parent_id, string $module_class)
Move module around the tree
at line 438
delete_module(int $module_id, string $module_class)
Remove module from tree
at line 487
string
move_module_by(array $module_row, string $module_class, string $action = 'move_up', int $steps = 1)
Move module position by $steps up/down