public function get($key, $default_value = null)
    {
        if (strpos($key, '.') !== false) {
            $setting = $this->getSubValue($key);
        } else {
            if ($this->hasByKey($key)) {
                $setting = $this->getByKey($key);
            } else {
                $setting = $default_value;
            }
        }
        $this->resetLang();

        if (is_null($setting)) {
            $setting = $default_value;
        }

        return $setting;
    }
public function get($key, $default_value = null)
    {
        if (strpos($key, '.') !== false) {
            $setting = $this->getSubValue($key);
        } else {
            if ($this->hasByKey($key)) {
                $setting = $this->getByKey($key);
            } else {
                $setting = $default_value;
            }
        }
        $this->resetLang();

        if (is_null($setting)) {
            $setting = $default_value;
        }

        return $setting;
    }
public function get ( $ key , $ default_value = null ) { if ( strpos ( $ key , '.' ) !== false ) { $ setting = $ this -> getSubValue ( $ key ) ; } else { if ( $ this -> hasByKey ( $ key ) ) { $ setting = $ this -> getByKey ( $ key ) ; } else { $ setting = $ default_value ; } } $ this -> resetLang ( ) ; if ( is_null ( $ setting ) ) { $ setting = $ default_value ; } return $ setting ; }
Return setting value or default value by key.

@param string $key
@param string $value

@return string|null
Return setting value or default value by key .