Méthode | Description | |
---|---|---|
__construct ( string $option ) | Constructor. Sets up the properties. | |
activate_module ( string $id ) : |
Activates the module with the given ID. | |
deactivate_module ( string $id ) : |
Deactivates the module with the given ID. | |
get_module ( string $id ) : |
Returns the module with the given ID. | |
get_modules ( integer $state = ModuleManager::MODULE_STATE_ALL ) : |
Returns all modules with the given state. | |
has_module ( string $id ) : boolean | Checks if the module with the given ID has been registered. | |
has_modules ( ) : boolean | Checks if any modules have been registered. | |
is_module_active ( string $id ) : boolean | Checks if the module with the given ID is active. | |
register_module ( |
Registers the given module. | |
save_modules ( ) : boolean | Saves the modules persistently. | |
unregister_module ( string $id ) : |
Unregisters the module with the given. |
public __construct ( string $option ) | ||
$option | string | The name of the network option used for storage. |
public activate_module ( string $id ) : |
||
$id | string | Module ID. |
Résultat | Module object. |
public deactivate_module ( string $id ) : |
||
$id | string | Module ID. |
Résultat | Module object. |
public get_module ( string $id ) : |
||
$id | string | Module ID. |
Résultat | Module object. |
public get_modules ( integer $state = ModuleManager::MODULE_STATE_ALL ) : |
||
$state | integer | Optional. State of the modules. Defaults to all modules. |
Résultat | Array of module objects. |
public has_module ( string $id ) : boolean | ||
$id | string | Module ID. |
Résultat | boolean | Whether or not the module with the given ID has been registered. |
public has_modules ( ) : boolean | ||
Résultat | boolean | Whether or not any modules have been registered. |
public is_module_active ( string $id ) : boolean | ||
$id | string | Module ID. |
Résultat | boolean | Whether or not the module with the given ID is active. |
public register_module ( |
||
$module | Module object. | |
Résultat | boolean | Whether or not the module is active. |
public save_modules ( ) : boolean | ||
Résultat | boolean | Whether or not the modules were saved successfully. |
public unregister_module ( string $id ) : |
||
$id | string | Module ID. |
Résultat | Array of all registered module objects. |