Class

ModulesManager

Package: phpboost Author: Benoit Sautel <ben.popeye@phpboost.com> Desc: This class enables you to manages the PHPBoost packages which are nothing else than the modules. Located at phpboost/module/ModulesManager.class.php
Methods summary
public static Module[string]
# get_installed_modules_map( )
public static Module[string]
# get_activated_modules_map( )
public static Module[string]
# get_uninstalled_modules_map( )
public static Module[string]
# get_installed_modules_map_sorted_by_localized_name( )
public static Module[string]
# get_activated_modules_map_sorted_by_localized_name( )
public static
public static string[]
# get_installed_modules_ids_list( )
public static string[]
# get_activated_modules_ids_list( )
public static Module
# get_module( mixed $module_id )
public static boolean
# is_module_installed( mixed $module_id )
public static boolean
# is_module_activated( mixed $module_id )
public static integer
# install_module( string $module_identifier, boolean $enable_module = true, mixed $generate_cache = true )
public static integer
# uninstall_module( integer $module_id, boolean $drop_files = false, mixed $generate_cache = true )
public static
# upgrade_module( mixed $module_identifier, mixed $generate_cache = true )
public static
# module_is_upgradable( mixed $module_identifier )
public static
# update_module( mixed $module_id, mixed $activated, mixed $generate_cache = true )
Constants summary
boolean GENERATE_CACHE_AFTER_THE_OPERATION true
#
boolean DO_NOT_GENERATE_CACHE_AFTER_THE_OPERATION false
#
integer MODULE_UNINSTALLED 0
#
integer MODULE_INSTALLED 1
#
integer UNEXISTING_MODULE 2
#
integer MODULE_ALREADY_INSTALLED 3
#
integer CONFIG_CONFLICT 4
#
integer NOT_INSTALLED_MODULE 5
#
integer MODULE_FILES_COULD_NOT_BE_DROPPED 6
#
integer PHP_VERSION_CONFLICT 7
#
integer PHPBOOST_VERSION_CONFLICT 8
#
integer MODULE_NOT_UPGRADABLE 9
#
integer UPGRADE_FAILED 10
#
integer MODULE_UPDATED 11
#