original_string: public static function sanitize($field, $input, $flags = 0)
      {
          $field = strtolower($field);
          switch($field)          // fall-through's are on purpose
          {
              case 'orgid_id':
                  return self::sanitizeText(self::TEXT_LENGTH_VERY_SHORT, $input, true, $flags);
              case 'ultmtcdrt':
              case 'ultmtdebtr':
                  return self::sanitizeText(self::TEXT_LENGTH_SHORT, $input, true, $flags);
              case 'orgnlcdtrschmeid_nm':
              case 'initgpty':
              case 'cdtr':
              case 'dbtr':
                  return self::sanitizeText(self::TEXT_LENGTH_SHORT, $input, false, $flags);
              case 'rmtinf':
                  return self::sanitizeText(self::TEXT_LENGTH_LONG, $input, true, $flags);
              default:
                  return false;
          }
      }
code: public static function sanitize($field, $input, $flags = 0)
      {
          $field = strtolower($field);
          switch($field)          // fall-through's are on purpose
          {
              case 'orgid_id':
                  return self::sanitizeText(self::TEXT_LENGTH_VERY_SHORT, $input, true, $flags);
              case 'ultmtcdrt':
              case 'ultmtdebtr':
                  return self::sanitizeText(self::TEXT_LENGTH_SHORT, $input, true, $flags);
              case 'orgnlcdtrschmeid_nm':
              case 'initgpty':
              case 'cdtr':
              case 'dbtr':
                  return self::sanitizeText(self::TEXT_LENGTH_SHORT, $input, false, $flags);
              case 'rmtinf':
                  return self::sanitizeText(self::TEXT_LENGTH_LONG, $input, true, $flags);
              default:
                  return false;
          }
      }
code_tokens: public static function sanitize ( $ field , $ input , $ flags = 0 ) { $ field = strtolower ( $ field ) ; switch ( $ field ) // fall-through's are on purpose { case 'orgid_id' : return self :: sanitizeText ( self :: TEXT_LENGTH_VERY_SHORT , $ input , true , $ flags ) ; case 'ultmtcdrt' : case 'ultmtdebtr' : return self :: sanitizeText ( self :: TEXT_LENGTH_SHORT , $ input , true , $ flags ) ; case 'orgnlcdtrschmeid_nm' : case 'initgpty' : case 'cdtr' : case 'dbtr' : return self :: sanitizeText ( self :: TEXT_LENGTH_SHORT , $ input , false , $ flags ) ; case 'rmtinf' : return self :: sanitizeText ( self :: TEXT_LENGTH_LONG , $ input , true , $ flags ) ; default : return false ; } }
docstring: Tries to sanitize the the input so it fits in the field.
  
  @param string $field Valid fields are: 'ultmtcdrt', 'ultmtdebtr',
  'orgnlcdtrschmeid_nm', 'initgpty', 'cdtr', 'dbtr', 'rmtinf'
  @param mixed  $input
  @param int    $flags Flags used in replaceSpecialChars()
  @return mixed|false The sanitized input or false if the input is not sanitizeable or
  invalid also after sanitizing.
docstring_tokens: Tries to sanitize the the input so it fits in the field .