17 $this->totalHits = $total;
25 if ( $this->resultSet ===
false ) {
29 return $this->resultSet->numRows();
33 if ( $this->resultSet ===
false ) {
37 $row = $this->resultSet->fetchObject();
38 if ( $row ===
false ) {
42 return SearchResult::newFromTitle(
43 Title::makeTitle( $row->page_namespace, $row->page_title ), $this
48 if ( $this->resultSet ) {
49 $this->resultSet->rewind();
54 if ( $this->resultSet ===
false ) {
58 $this->resultSet->free();
62 if ( !is_null( $this->totalHits ) ) {
and give any other recipients of the Program a copy of this License along with the Program You may charge a fee for the physical act of transferring a and you may at your option offer warranty protection in exchange for a fee You may modify your copy or copies of the Program or any portion of thus forming a work based on the and copy and distribute such modifications or work under the terms of Section provided that you also meet all of these that in whole or in part contains or is derived from the Program or any part to be licensed as a whole at no charge to all third parties under the terms of this License c If the modified program normally reads commands interactively when you must cause when started running for such interactive use in the most ordinary to print or display an announcement including an appropriate copyright notice and a notice that there is no and telling the user how to view a copy of this and can be reasonably considered independent and separate works in then this and its terms
This class is used for different SQL-based search engines shipped with MediaWiki.
free()
Frees the result set, if applicable.
getTotalHits()
Some search modes return a total hit count for the query in the entire article database.
termMatches()
Fetch an array of regular expression fragments for matching the search terms as parsed by this engine...
next()
Fetches next search result, or false.
rewind()
Rewind result set back to beginning.
__construct(ResultWrapper $resultSet, $terms, $total=null)