public function getSetting($name, $default = '')
    {

        if (array_key_exists($name, $this->settings)) {
            $value = $this->settings[$name];
        } else {
            $value = $default;
        }

        return $value;

    }
public function getSetting($name, $default = '')
    {

        if (array_key_exists($name, $this->settings)) {
            $value = $this->settings[$name];
        } else {
            $value = $default;
        }

        return $value;

    }
public function getSetting ( $ name , $ default = '' ) { if ( array_key_exists ( $ name , $ this -> settings ) ) { $ value = $ this -> settings [ $ name ] ; } else { $ value = $ default ; } return $ value ; }
Get a setting value.

@param string $name    Name of setting
@param string $default Value to return if the setting does not exist (optional, default is an empty string)

@return string Setting value
Get a setting value .