private function getValue ($name, $default)
	{
		$parts = explode ('.', $name);
		$file = array_shift ($parts);

		$this->loadFile ($file);

		if (! isset ($this->files[$file])) {
			return $default;
		}
		else {
			$out = $this->files[$file];
			foreach ($parts as $part)
			{
				if (!isset ($out[$part]))
				{
					return $default;
				}
				else {
					$out = $out[$part];
				}
			}
		}

		return $out;
	}
private function getValue ($name, $default)
	{
		$parts = explode ('.', $name);
		$file = array_shift ($parts);

		$this->loadFile ($file);

		if (! isset ($this->files[$file])) {
			return $default;
		}
		else {
			$out = $this->files[$file];
			foreach ($parts as $part)
			{
				if (!isset ($out[$part]))
				{
					return $default;
				}
				else {
					$out = $out[$part];
				}
			}
		}

		return $out;
	}
private function getValue ( $ name , $ default ) { $ parts = explode ( '.' , $ name ) ; $ file = array_shift ( $ parts ) ; $ this -> loadFile ( $ file ) ; if ( ! isset ( $ this -> files [ $ file ] ) ) { return $ default ; } else { $ out = $ this -> files [ $ file ] ; foreach ( $ parts as $ part ) { if ( ! isset ( $ out [ $ part ] ) ) { return $ default ; } else { $ out = $ out [ $ part ] ; } } } return $ out ; }
Find a config variable and return it.
@param string $name
@param string $default
@return mixed
Find a config variable and return it .