Chapter 3. Module Components

The WebTool is divided into modules, each of which has a narrowly defined area of responsibility, such as Apache configuration or displaying of logfiles. These modules are also divided into separate components, which will be detailed in this chapter.

Modules are created within their own directory under the modules directory of the WebTool tree.

3.1. Module Library

Every module contains a module library named the same as the module directory, with a .pm extension. This library should contain functions for every administration task the module performs. This library can be considered the module's own API, as it is the interface to the module from the rest of the WebTool.

Other WebTool modules can load and call this module. See Section 2.5 for eamples of how and why a module might need to load and use another module's library.