<?

include_once(INCLUDE_DIR."/modulebase.inc.php");

define("INC_CONFIG","configopts");

/**
 * Get configoptions
 *
 * This module makes it possible to retrieve configoption values
 * @package   Include
 * @author    Herman Suijs
 */
class Config extends ModuleBase {
  var 
$name "IncludeConfig";
  var 
$id INC_CONFIG;
  var 
$options = array();

  
/**
   * Constructor
   */
  
function Config() {
    
// set initial options
    
$this->ModuleBase();
  } 
/* function Config() */

  /**
   * Set option
   */
  
function setOption($option,$value) {
    
$this->options[$option] = $value;
  } 
/* function setOption($option,$va... */

  /**
   * Get option
   *
   * Get option value
   * @param   $option: the option to return the value from
   * @return  the value
   */
  
function getOption($option) {
    switch(
$option) {
      case 
CFG_AUTO_CONFIG 
    return (
AUTO_CONFIG||$this->options[CFG_AUTO_CONFIG]);
    break;
    } 
/* switch($option) */
  
/* function getOption($option) */
// end class Config /* class Config extends ModuleBas... */