示例#1
0
 /**
  * Returns the extension configuration
  *
  * @param string Name of the configuration setting
  * @param mixed Value returned if no value in extension configuration was found
  * @return mixed Value associated with the configuration setting
  */
 public static function getExtConfig($name, $default = null)
 {
     if (self::$extConfig === null) {
         if (($conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['aimeos'])) === false) {
             $conf = array();
         }
         self::$extConfig = $conf;
     }
     if (isset(self::$extConfig[$name])) {
         return self::$extConfig[$name];
     }
     return $default;
 }