コード例 #1
0
 /**
  * parse query string, using query parser instance
  * @return object of query parser or error message if an error occured
  * @access public
  */
 function &__parseQueryString($a_string, $a_combination_or = true)
 {
     $query_parser = new ilQueryParser(ilUtil::stripSlashes($a_string));
     $query_parser->setCombination($a_combination_or ? QP_COMBINATION_OR : QP_COMBINATION_AND);
     $query_parser->setMinWordLength(1);
     $query_parser->setGlobalMinLength(3);
     // #14768
     $query_parser->parse();
     if (!$query_parser->validate()) {
         return $query_parser->getMessage();
     }
     return $query_parser;
 }