Summary
- File
- Package hierarchy PHPBoost\Module
- Class hierarchy \ModulesManager
This class enables you to manages the PHPBoost packages which are nothing else than the modules.
This class enables you to manages the PHPBoost packages which are nothing else than the modules.
get_installed_modules_map() : \Module[string]
the Modules map (name => module) of the installed modules (activated or not)
None found |
get_activated_modules_map() : \Module[string]
the Modules map (name => module) of the installed modules (and activated )
None found |
get_uninstalled_modules_map() : \Module[string]
the Modules map (name => module) of the uninstalled modules (activated or not)
None found |
get_installed_modules_map_sorted_by_localized_name() : \Module[string]
the Modules map (name => module) of the installed modules (activated or not) sorted by name
None found |
get_activated_modules_map_sorted_by_localized_name() : \Module[string]
the Modules map (name => module) of the installed modules (and activated) sorted by name
None found |
callback_sort_modules_by_name(\Module $module1, \Module $module2)
None found |
get_installed_modules_ids_list() : array<mixed,string>
the names list of the installed modules (activated or not)
None found |
get_activated_modules_ids_list() : array<mixed,string>
the names list of the installed modules (and activated)
None found |
get_activated_feature_modules( $feature_id) : array<mixed,string>
$feature_id |
None found |
get_module( $module_id) : \Module
Returns the requested module
$module_id | the id of the module |
the requested module
None found |
is_module_installed( $module_id) : boolean
tells whether the requested module is installed (activated or not)
$module_id |
true if the requested module is installed
None found |
is_module_activated( $module_id) : boolean
tells whether the requested module is activated
$module_id |
true if the requested module is activated
None found |
install_module(string $module_identifier, boolean $enable_module = true, $generate_cache = true) : integer
string | $module_identifier | Module identifier (name of its folder) |
boolean | $enable_module | true if you want the module to be enabled, otherwise false. |
$generate_cache |
One of the following error codes:
static |
Installs a module. |
uninstall_module(integer $module_id, boolean $drop_files = false, $generate_cache = true) : integer
integer | $module_id | Module id (in the DB_TABLE_MODULES table) |
boolean | $drop_files | true if you want the module files to be dropped, otherwise false. |
$generate_cache |
One of the following error codes:
static |
Uninstalls a module. |
upgrade_module( $module_identifier, $generate_cache = true)
$module_identifier | ||
$generate_cache |
None found |
module_is_upgradable( $module_identifier)
$module_identifier |
None found |
update_module( $module_id, $activated, $generate_cache = true)
$module_id | ||
$activated | ||
$generate_cache |
None found |
set_module_activation( $module_id, \bool $activated)
$module_id | ||
\bool | $activated |
None found |
generate_unauthorized_module_option( $type) : array<mixed,string>
$type |
the names list of the modules for unauthorized FormFieldSelectChoiceOption
None found |
execute_module_installation( $module_id)
$module_id |
None found |
execute_module_uninstallation( $module_id)
$module_id |
None found |
execute_module_upgrade( $module_id, $installed_version)
$module_id | ||
$installed_version |
None found |
get_module_setup(string $module_id) : \ModuleSetup
string | $module_id |
None found |
module_setup_exists( $module_setup_classname)
$module_setup_classname |
None found |
update_class_list()
None found |
GENERATE_CACHE_AFTER_THE_OPERATION = true
None found |
DO_NOT_GENERATE_CACHE_AFTER_THE_OPERATION = false
None found |
MODULE_UNINSTALLED = 0
None found |
MODULE_INSTALLED = 1
None found |
UNEXISTING_MODULE = 2
None found |
MODULE_ALREADY_INSTALLED = 3
None found |
CONFIG_CONFLICT = 4
None found |
NOT_INSTALLED_MODULE = 5
None found |
MODULE_FILES_COULD_NOT_BE_DROPPED = 6
None found |
PHP_VERSION_CONFLICT = 7
None found |
PHPBOOST_VERSION_CONFLICT = 8
None found |
MODULE_NOT_UPGRADABLE = 9
None found |
UPGRADE_FAILED = 10
None found |
MODULE_UPDATED = 11
None found |