public function get($name, $default = null)
	{
		if ( substr($name, -1) == '.' ) {
			$ret = array();

			foreach ( $this->settings as $setting_name => $setting_value ) {
				if ( preg_match('/^' . preg_quote($name, '/') . '/', $setting_name) ) {
					$ret[$setting_name] = $setting_value;
				}
			}

			return $ret;
		}

		return array_key_exists($name, $this->settings) ? $this->settings[$name] : $default;
	}
public function get($name, $default = null)
	{
		if ( substr($name, -1) == '.' ) {
			$ret = array();

			foreach ( $this->settings as $setting_name => $setting_value ) {
				if ( preg_match('/^' . preg_quote($name, '/') . '/', $setting_name) ) {
					$ret[$setting_name] = $setting_value;
				}
			}

			return $ret;
		}

		return array_key_exists($name, $this->settings) ? $this->settings[$name] : $default;
	}
public function get ( $ name , $ default = null ) { if ( substr ( $ name , - 1 ) == '.' ) { $ ret = array ( ) ; foreach ( $ this -> settings as $ setting_name => $ setting_value ) { if ( preg_match ( '/^' . preg_quote ( $ name , '/' ) . '/' , $ setting_name ) ) { $ ret [ $ setting_name ] = $ setting_value ; } } return $ ret ; } return array_key_exists ( $ name , $ this -> settings ) ? $ this -> settings [ $ name ] : $ default ; }
Returns config value.

@param string $name    Config setting name.
@param mixed  $default Default value.

@return mixed
Returns config value .