original_string: public function setParam($key, $val)
      {
          switch ($key) {
          case 'password':
              if ($val instanceof Horde_Imap_Client_Base_Password) {
                  break;
              }
  
              // DEPRECATED: Encrypt password.
              try {
                  $encrypt_key = $this->_getEncryptKey();
                  if (strlen($encrypt_key)) {
                      $secret = new Horde_Secret();
                      $val = $secret->write($encrypt_key, $val);
                      $this->_params['_passencrypt'] = true;
                  }
              } catch (Exception $e) {}
              break;
          }
  
          $this->_params[$key] = $val;
          $this->changed = true;
      }
code: public function setParam($key, $val)
      {
          switch ($key) {
          case 'password':
              if ($val instanceof Horde_Imap_Client_Base_Password) {
                  break;
              }
  
              // DEPRECATED: Encrypt password.
              try {
                  $encrypt_key = $this->_getEncryptKey();
                  if (strlen($encrypt_key)) {
                      $secret = new Horde_Secret();
                      $val = $secret->write($encrypt_key, $val);
                      $this->_params['_passencrypt'] = true;
                  }
              } catch (Exception $e) {}
              break;
          }
  
          $this->_params[$key] = $val;
          $this->changed = true;
      }
code_tokens: public function setParam ( $ key , $ val ) { switch ( $ key ) { case 'password' : if ( $ val instanceof Horde_Imap_Client_Base_Password ) { break ; } // DEPRECATED: Encrypt password. try { $ encrypt_key = $ this -> _getEncryptKey ( ) ; if ( strlen ( $ encrypt_key ) ) { $ secret = new Horde_Secret ( ) ; $ val = $ secret -> write ( $ encrypt_key , $ val ) ; $ this -> _params [ '_passencrypt' ] = true ; } } catch ( Exception $ e ) { } break ; } $ this -> _params [ $ key ] = $ val ; $ this -> changed = true ; }
docstring: Sets a configuration parameter value.
  
  @param string $key  The param key.
  @param mixed $val   The param value.
docstring_tokens: Sets a configuration parameter value .