public static function config($name = NULL, $default = NULL) {

    // If no name is specified, return the entire config array.
    if (empty($name)) {
      return self::$config;
    }

    // If the config value exists, return that.
    if (isset(self::$config[$name])) {
      return self::$config[$name];
    }

    // Otherwise, just return the default value.
    return $default;
  }
public static function config($name = NULL, $default = NULL) {

    // If no name is specified, return the entire config array.
    if (empty($name)) {
      return self::$config;
    }

    // If the config value exists, return that.
    if (isset(self::$config[$name])) {
      return self::$config[$name];
    }

    // Otherwise, just return the default value.
    return $default;
  }
public static function config ( $ name = NULL , $ default = NULL ) { // If no name is specified, return the entire config array. if ( empty ( $ name ) ) { return self :: $ config ; } // If the config value exists, return that. if ( isset ( self :: $ config [ $ name ] ) ) { return self :: $ config [ $ name ] ; } // Otherwise, just return the default value. return $ default ; }
Get a configuration option.

Get a configuration option by name, with an optional default.

@param string $name
The name of the configuration option to get.
@param mixed $default
The default value to return if the name is not found.
@retval mixed
@return mixed
The value, if found; or the default, if set; or NULL.
Get a configuration option .