Class ConfigModule

Module
   |
   +----ConfigModule

Located in File: Program_Root/config.mod.php


This class takes some options to add extra modules or to add config options via a configfile
 This module is used to dynamically insert modules that are needed for a
 specific form. There are 2 ways of including these modules:
 1. AUTO_CONFIGURATION: all modules are scanned (.def.xml) for options
 that belong to a specific module. If the option is used in the form the
 module is loaded. The routine for this auto-configuration is pretty
 slow, so it is possible to turn it off in configfile.mod.php
 2. options 'modules' Every module that is added to the modules-option, is
 loaded (multiple options can be seperated with :)

 )
 

Class Variable Summary
$name
Name of the module
Default Value: ->"ConfigModule"<-
$id
Id of the module
Default Value: ->MOD_CONFIG<-
$execlevel
Execution level of the module
Default Value: ->1<-
$modules
Variable to contain all modules that need to be loaded
Default Value: ->""<-

Method Summary
ConfigModule ( )
Constructor
before_action ( )
Before action
auto_config ( )
Routine for automatic loading of modules
do_action ( )
Do action
after_action ( )
After action

Variable Detail

$name

Name of the module


$id

Id of the module


$execlevel

Execution level of the module


$modules

Variable to contain all modules that need to be loaded



Function Detail

ConfigModule

ConfigModule ( )

Constructor
 Create the options and call the superConstructor

Function Parameters:
Function Info:

before_action

before_action ( )

Before action
 Check all options, load in a configfile if necessary and set all
 options.

Function Parameters:
Function Info:

auto_config

auto_config ( )

Routine for automatic loading of modules
 When predefined options from an xml-configfile are here, then the
 module is added to the list of modules to be loaded in.

 Because the file xml.inc.php is quite large and may downgrade the
 performance of the whole script, you can turn of auto-configuration in
 the configfile.mod.php (must become xml config one day)

Function Parameters:
Function Info:

do_action

do_action ( )

Do action
 All modules that were selected will be loaded in

Function Parameters:
Function Info:

after_action

after_action ( )

After action
 Cleanup

Function Parameters:
Function Info: