function get($file_name, $section_name = NULL, $var_name = NULL)
	{
		if (empty($file_name)) {
			$this->_trigger_error_msg('Empty config file name');
			return;
		} else {
			$file_name = $this->_config_path . $file_name;
			if (!isset($this->_config_data[$file_name]))
			$this->load_file($file_name, false);
		}

		if (!empty($var_name)) {
			if (empty($section_name)) {
				return $this->_config_data[$file_name]["vars"][$var_name];
			} else {
				if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name]))
				return $this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name];
				else
				return array();
			}
		} else {
			if (empty($section_name)) {
				return (array)$this->_config_data[$file_name]["vars"];
			} else {
				if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"]))
				return (array)$this->_config_data[$file_name]["sections"][$section_name]["vars"];
				else
				return array();
			}
		}
	}
function get($file_name, $section_name = NULL, $var_name = NULL)
	{
		if (empty($file_name)) {
			$this->_trigger_error_msg('Empty config file name');
			return;
		} else {
			$file_name = $this->_config_path . $file_name;
			if (!isset($this->_config_data[$file_name]))
			$this->load_file($file_name, false);
		}

		if (!empty($var_name)) {
			if (empty($section_name)) {
				return $this->_config_data[$file_name]["vars"][$var_name];
			} else {
				if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name]))
				return $this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name];
				else
				return array();
			}
		} else {
			if (empty($section_name)) {
				return (array)$this->_config_data[$file_name]["vars"];
			} else {
				if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"]))
				return (array)$this->_config_data[$file_name]["sections"][$section_name]["vars"];
				else
				return array();
			}
		}
	}
function get ( $ file_name , $ section_name = NULL , $ var_name = NULL ) { if ( empty ( $ file_name ) ) { $ this -> _trigger_error_msg ( 'Empty config file name' ) ; return ; } else { $ file_name = $ this -> _config_path . $ file_name ; if ( ! isset ( $ this -> _config_data [ $ file_name ] ) ) $ this -> load_file ( $ file_name , false ) ; } if ( ! empty ( $ var_name ) ) { if ( empty ( $ section_name ) ) { return $ this -> _config_data [ $ file_name ] [ "vars" ] [ $ var_name ] ; } else { if ( isset ( $ this -> _config_data [ $ file_name ] [ "sections" ] [ $ section_name ] [ "vars" ] [ $ var_name ] ) ) return $ this -> _config_data [ $ file_name ] [ "sections" ] [ $ section_name ] [ "vars" ] [ $ var_name ] ; else return array ( ) ; } } else { if ( empty ( $ section_name ) ) { return ( array ) $ this -> _config_data [ $ file_name ] [ "vars" ] ; } else { if ( isset ( $ this -> _config_data [ $ file_name ] [ "sections" ] [ $ section_name ] [ "vars" ] ) ) return ( array ) $ this -> _config_data [ $ file_name ] [ "sections" ] [ $ section_name ] [ "vars" ] ; else return array ( ) ; } } }
Retrieves config info based on the file, section, and variable name.

@param string $file_name config file to get info for
@param string $section_name (optional) section to get info for
@param string $var_name (optional) variable to get info for
@return string|array a value or array of values
Retrieves config info based on the file section and variable name .