public function set($key, $value)
    {
        if (strpos($key, '.') !== false) {
            $this->setSubValue($key, $value);
        } else {
            $this->setByKey($key, $value);
        }

        $this->resetLang();
    }
public function set($key, $value)
    {
        if (strpos($key, '.') !== false) {
            $this->setSubValue($key, $value);
        } else {
            $this->setByKey($key, $value);
        }

        $this->resetLang();
    }
public function set ( $ key , $ value ) { if ( strpos ( $ key , '.' ) !== false ) { $ this -> setSubValue ( $ key , $ value ) ; } else { $ this -> setByKey ( $ key , $ value ) ; } $ this -> resetLang ( ) ; }
Set the setting by key and value.

@param string $key
@param mixed  $value

@return void
Set the setting by key and value .