Source for file modules_register.class.php
Documentation is available at modules_register.class.php
// *** Tangra (Application Framework and Tools for PHP)
* Contains class Modules_Register
* Class that is used to by boot process to register modules
* Array that contains registered modules
* @param string $module_given_name Name of the module as given by user
* @param array $module_info
$this->modules[$module_given_name]['module_info'] = $module_info;
throw new Tangra_Exception('Module "'. $module_given_name. '" is already registered.');
* Checks if module is already registered
* @param string $module_given_name Name of the module
* Sets module configuration
* @param string $module_given_name Name of the module
$this->modules[$module_given_name]['config'] = $config;
throw new Tangra_Exception('Module "'. $module_given_name. '" is not registered. Register it with $WSC->register_module(...).');
* Returns module configuration
* @param string $module_given_name Name of the module
$ret = $this->modules[$module_given_name]['config'];
throw new Tangra_Exception('Module "'. $module_given_name. '" is not registered. Register it with $WSC->register_module(...).');
* @param string $module_given_name Name of the module
$ret = $this->modules[$module_given_name]['module_info'];
throw new Tangra_Exception('Module "'. $module_given_name. '" is not registered. Register it with $WSC->register_module(...).');
|