Document toolboxDocument toolbox

Class Module

The module class represents a Microbizz module, where each module is represented by a subclass of the Module class. These classes are considered static classes and are never instantiated. 

All module classes resides in the \Microbizz\Module namespace.

Getting a module from a module code

See the example below on how to get the title from a specific module:

$class = Module::getClassNameByModuleCode('my_module');
$module_title = $class::getTitle();

Adding modules to solution

A module is added by calling the static install function on the module.

MyModule::install();

Removing modules from solution

A function uninstall allows you to remove a module again.

MyModule::uninstall();