Get s setting value.

@param $settingName
@return null|string
424522
public function getSetting($settingName)
    {
        $value = null;

        /* @var ShopSetting $setting */
        $setting = $this->shopSettingsRepository->findOneBy([
            'name' => $settingName
        ]);

        if ($setting) {
            $value = $setting->getValue();
        }

        return $value;
    }
1026395
public function getOption($optionName = null)
    {
        if ($this->multiSite) {
            $options = get_site_option($this->settingsName);
        } else {
            $options = get_option($this->settingsName);
        }
        if (!$optionName)
            return $options;

        if (is_array($options) && isset($options[$optionName]))
            return $options[$optionName];
        foreach ($this->settings as $setting) {
            if ($setting['name'] == $optionName) {
                if (!empty($setting['default']))
                    return $setting['default'];
                break;
            }
        }
        return null;
    }
1286342
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;
	}
1278094
public function get_setting() {
        $roles = role_fix_names(get_all_roles());
        $result = array();
        foreach ($roles as $role) {
            $contexts = $this->config_read('contexts_role'.$role->id);
            $memberattribute = $this->config_read('memberattribute_role'.$role->id);
            $result[] = array('id' => $role->id,
                              'name' => $role->localname,
                              'contexts' => $contexts,
                              'memberattribute' => $memberattribute);
        }
        return $result;
    }
518264
public function getInfo($sName)
    {
        if (!isset($this->_aTheme[$sName])) {
            return null;
        }

        return $this->_aTheme[$sName];
    }
296533
public function get($key)
    {
        if (!$this->has($key)) {
            return null;
        }

        return (new SettingModel)
            ->cached()
            ->where('key', $key)
            ->first()
            ->value;
    }
918944
public static function getSetting($setting = null, $property = null) {
		$data = self::getStatic();
		$keys = [];
		if (isset($setting)) {
			$keys[] = $setting;
			if (isset($property)) {
				$keys[] = $property;
			}
		}
		return array_key_get($data, $keys);
	}
1132539
def get_setting(*args, **kwargs):
    """"""
    for name in args:
        if hasattr(settings, name):
            return getattr(settings, name)
    if kwargs.get('raise_error', False):
        setting_url = url % args[0].lower().replace('_', '-')
        raise ImproperlyConfigured('Please make sure you specified at '
            'least one of these settings: %s \r\nDocumentation: %s'
            % (args, setting_url))
    return kwargs.get('default_value', None)
1356728
public function getConfigSetting($setting) {
		$source = $this->getConfigData();
		foreach(func_get_args() as $setting) {
			if(empty($source[$setting])) return null;
			$source = $source[$setting];
		}
		return $source;
	}
795107
public static function getPreference(string $setting_name, string $default = ''): string
    {
        // There are lots of settings, and we need to fetch lots of them on every page
        // so it is quicker to fetch them all in one go.
        if (empty(self::$preferences)) {
            self::$preferences = DB::table('site_setting')
                ->pluck('setting_value', 'setting_name')
                ->all();
        }

        return self::$preferences[$setting_name] ?? $default;
    }
1331415
public function get_setting() {
        $result = $this->config_read($this->name);
        if (is_null($result)) {
            return NULL;
        }
        if ($result === '') {
            return array();
        }
        return explode(',', $result);
    }
1157926
public function get($key, $settings = null, $asSingelton = false)
    {
        if ($this->parser && !$this->parser->parse($key)) {
            return null;
        }

        if ($this->serviceCollection[$key]) {
            $this->serviceCollection[$key];
        }

        if ($asSingelton && isset($this->pseudoSingeltonList)) {

        }


        return;
    }
543055
public function get_setting($name) {
        $result = null;
        if (isset($this->settings[$name])) {
            $result = $this->settings[$name];
        } else {
            throw new base_plan_exception('setting_by_name_not_found', $name);
        }
        return $result;
    }
235951
public function getParameterValue(string $parameterName)
    {
        if (!$this->hasParameterValue($parameterName)) {
            return null;
        }

        return $this->parameterValues[$parameterName];
    }
76817
public function getTransient(string $setting = '')
    {
        $data = $this->get();
        $settings = $data['transient'];

        if ('' !== $setting) {
            if (isset($settings[$setting])) {
                return $settings[$setting];
            }

            if (false !== \strpos($setting, '.')) {
                // convert dot notation to nested arrays
                $keys = \explode('.', $setting);
                foreach ($keys as $key) {
                    if (isset($settings[$key])) {
                        $settings = $settings[$key];
                    } else {
                        return null;
                    }
                }

                return $settings;
            }

            return null;
        }

        return $settings;
    }
1322257
public function get(string $key)
    {
        $hash =  self::findFirst([
            'conditions' => "{$this->settingsKey} = ?0 and key = ?1",
            'bind' => [$this->getSettingsKey(), $key]
        ]);

        if ($hash) {
            return $hash->value;
        }

        return null;
    }
979365
public function get_setting() {
        $seconds = $this->config_read($this->name);
        if (is_null($seconds)) {
            return null;
        }

        return self::parse_seconds($seconds);
    }