* @link https://github.com/pjmazenot/phpsolr-phpdoc
*/
/**
* (PECL solr >= 0.9.2)
* Class SolrUtils
* Contains utility methods for retrieving the current extension version and preparing query phrases.
* Also contains method for escaping query strings and parsing XML responses.
* @link https://php.net/manual/en/class.solrutils.php
*/
abstract class SolrUtils
{
/**
* (PECL solr >= 0.9.2)
* Parses an response XML string into a SolrObject
* @link https://php.net/manual/en/solrutils.digestxmlresponse.php
* @param string $xmlresponse
* The XML response string from the Solr server. *
* @param int $parse_mode [optional]* Use SolrResponse::PARSE_SOLR_OBJ or SolrResponse::PARSE_SOLR_DOC *
* @return SolrObject* Returns the SolrObject representing the XML response. *
** If the parse_mode parameter is set to SolrResponse::PARSE_SOLR_OBJ Solr documents will be parses as SolrObject instances. *
** If it is set to SolrResponse::PARSE_SOLR_DOC, they will be parsed as SolrDocument instances. *
* @throws SolrException */ public static function digestXmlResponse($xmlresponse, $parse_mode = 0) {} /** * (PECL solr >= 0.9.2)* This is the query string to be escaped. *
* @return string|false* Returns the escaped string or FALSE on failure. *
*/ public static function escapeQueryChars($str) {} /** * (PECL solr >= 0.9.2)* The current version of the Apache Solr extension. *
*/ public static function getSolrVersion() {} /** * (PECL solr >= 0.9.2)* The lucene phrase. *
* @return string* Returns the phrase contained in double quotes. *
*/ public static function queryPhrase($str) {} }