public function setValid($charset, $valid = true)
    {
        $charset = Horde_String::upper($charset);
        $valid = (bool)$valid;

        if (!isset($this->_charsets[$charset]) ||
            ($this->_charsets[$charset] !== $valid)) {
            $this->_charsets[$charset] = $valid;
            $this->notify();
        }
    }
public function setValid($charset, $valid = true)
    {
        $charset = Horde_String::upper($charset);
        $valid = (bool)$valid;

        if (!isset($this->_charsets[$charset]) ||
            ($this->_charsets[$charset] !== $valid)) {
            $this->_charsets[$charset] = $valid;
            $this->notify();
        }
    }
public function setValid ( $ charset , $ valid = true ) { $ charset = Horde_String :: upper ( $ charset ) ; $ valid = ( bool ) $ valid ; if ( ! isset ( $ this -> _charsets [ $ charset ] ) || ( $ this -> _charsets [ $ charset ] !== $ valid ) ) { $ this -> _charsets [ $ charset ] = $ valid ; $ this -> notify ( ) ; } }
Set the validity of a given charset.

@param string $charset  The charset.
@param boolean $valid   Is charset valid?
Set the validity of a given charset .