Class

ModulesManager

Package: PHPBoost\Module Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2019 01 12 Since: PHPBoost 2.0 - 2008 10 12 Contributor: Kevin MASSY reidlos@phpboost.com Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: phpboost/module/ModulesManager.class.php

This class enables you to manages the PHPBoost packages which are nothing else than the modules.

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 string[]
# get_activated_feature_modules( $feature_id )
public static Module
# get_module( $module_id )

Returns the requested module

public static boolean
# is_module_installed( $module_id )

tells whether the requested module is installed (activated or not)

public static boolean
# is_module_activated( $module_id )

tells whether the requested module is activated

public static integer
# install_module( string $module_identifier, boolean $enable_module = true, $generate_cache = true )
public static integer
# uninstall_module( integer $module_id, boolean $drop_files = false, $generate_cache = true )
public static
# upgrade_module( $module_identifier, $generate_cache = true )
public static
# module_is_upgradable( $module_identifier )
public static
# update_module( $module_id, $activated, $generate_cache = true )
public static
# set_module_activation( $module_id, boolean $activated )
public static string[]
# generate_unauthorized_module_option( $type )