original_string: public function getXMLDBFieldType($type) {
  
          $result = XMLDB_TYPE_INCORRECT;
  
          switch (strtolower($type)) {
              case 'int':
                  $result = XMLDB_TYPE_INTEGER;
                  break;
              case 'number':
                  $result = XMLDB_TYPE_NUMBER;
                  break;
              case 'float':
                  $result = XMLDB_TYPE_FLOAT;
                  break;
              case 'char':
                  $result = XMLDB_TYPE_CHAR;
                  break;
              case 'text':
                  $result = XMLDB_TYPE_TEXT;
                  break;
              case 'binary':
                  $result = XMLDB_TYPE_BINARY;
                  break;
              case 'datetime':
                  $result = XMLDB_TYPE_DATETIME;
                  break;
          }
          // Return the normalized XMLDB_TYPE
          return $result;
      }
code: public function getXMLDBFieldType($type) {
  
          $result = XMLDB_TYPE_INCORRECT;
  
          switch (strtolower($type)) {
              case 'int':
                  $result = XMLDB_TYPE_INTEGER;
                  break;
              case 'number':
                  $result = XMLDB_TYPE_NUMBER;
                  break;
              case 'float':
                  $result = XMLDB_TYPE_FLOAT;
                  break;
              case 'char':
                  $result = XMLDB_TYPE_CHAR;
                  break;
              case 'text':
                  $result = XMLDB_TYPE_TEXT;
                  break;
              case 'binary':
                  $result = XMLDB_TYPE_BINARY;
                  break;
              case 'datetime':
                  $result = XMLDB_TYPE_DATETIME;
                  break;
          }
          // Return the normalized XMLDB_TYPE
          return $result;
      }
code_tokens: public function getXMLDBFieldType ( $ type ) { $ result = XMLDB_TYPE_INCORRECT ; switch ( strtolower ( $ type ) ) { case 'int' : $ result = XMLDB_TYPE_INTEGER ; break ; case 'number' : $ result = XMLDB_TYPE_NUMBER ; break ; case 'float' : $ result = XMLDB_TYPE_FLOAT ; break ; case 'char' : $ result = XMLDB_TYPE_CHAR ; break ; case 'text' : $ result = XMLDB_TYPE_TEXT ; break ; case 'binary' : $ result = XMLDB_TYPE_BINARY ; break ; case 'datetime' : $ result = XMLDB_TYPE_DATETIME ; break ; } // Return the normalized XMLDB_TYPE return $ result ; }
docstring: This function returns the correct XMLDB_TYPE_XXX value for the
  string passed as argument
  @param string $type
  @return int
docstring_tokens: This function returns the correct XMLDB_TYPE_XXX value for the string passed as argument