Example #1
0
 /**
  * Return a variable from the configuration data.
  *
  * \param
  *   $name The variable name.
  *
  * \return
  *   The value of the variable.
  */
 public static function get($name)
 {
     assert('is_string($name)');
     if (!AnewtConfig::is_set($name)) {
         throw new AnewtException('No such configuration key: %s', $name);
     }
     global $_anewt_config;
     return $_anewt_config[$name];
 }