dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing @return and @param to doc blocks
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchEngine.php
diff --git
a/includes/search/SearchEngine.php
b/includes/search/SearchEngine.php
index
4663ab8
..
0eb87e4
100644
(file)
--- a/
includes/search/SearchEngine.php
+++ b/
includes/search/SearchEngine.php
@@
-120,6
+120,8
@@
class SearchEngine {
* Transform search term in cases when parts of the query came as different
* GET params (when supported), e.g. for prefix queries:
* search=test&prefix=Main_Page/Archive -> test prefix:Main Page/Archive
* Transform search term in cases when parts of the query came as different
* GET params (when supported), e.g. for prefix queries:
* search=test&prefix=Main_Page/Archive -> test prefix:Main Page/Archive
+ * @param string $term
+ * @return string
*/
function transformSearchTerm( $term ) {
return $term;
*/
function transformSearchTerm( $term ) {
return $term;
@@
-152,6
+154,7
@@
class SearchEngine {
/**
* Really find the title match.
/**
* Really find the title match.
+ * @param string $searchterm
* @return null|Title
*/
private static function getNearMatchInternal( $searchterm ) {
* @return null|Title
*/
private static function getNearMatchInternal( $searchterm ) {
@@
-318,7
+321,6
@@
class SearchEngine {
$parsed = $query;
if ( strpos( $query, ':' ) === false ) { // nothing to do
$parsed = $query;
if ( strpos( $query, ':' ) === false ) { // nothing to do
- wfRunHooks( 'SearchEngineReplacePrefixesComplete', array( $this, $query, &$parsed ) );
return $parsed;
}
return $parsed;
}
@@
-338,8
+340,6
@@
class SearchEngine {
$parsed = $query; // prefix was the whole query
}
$parsed = $query; // prefix was the whole query
}
- wfRunHooks( 'SearchEngineReplacePrefixesComplete', array( $this, $query, &$parsed ) );
-
return $parsed;
}
return $parsed;
}
@@
-419,17
+419,6
@@
class SearchEngine {
return $formatted;
}
return $formatted;
}
- /**
- * Return a 'cleaned up' search string
- *
- * @param string $text
- * @return string
- */
- function filter( $text ) {
- $lc = $this->legalSearchChars();
- return trim( preg_replace( "/[^{$lc}]/", " ", $text ) );
- }
-
/**
* Load up the appropriate search engine class for the currently
* active database backend, and return a configured instance.
/**
* Load up the appropriate search engine class for the currently
* active database backend, and return a configured instance.
@@
-555,13
+544,6
@@
class SearchEngine {
}
}
}
}
-/**
- * @ingroup Search
- */
-class SearchResultTooMany {
- # # Some search engines may bail out if too many matches are found
-}
-
/**
* Dummy class to be used when non-supported Database engine is present.
* @todo FIXME: Dummy class should probably try something at least mildly useful,
/**
* Dummy class to be used when non-supported Database engine is present.
* @todo FIXME: Dummy class should probably try something at least mildly useful,