35 $search,
$namespaces, $category, $prefix, $use_regex =
false
38 $tables = [
'page',
'revision',
'text' ];
39 $vars = [
'page_id',
'page_namespace',
'page_title',
'old_text' ];
43 $any =
$dbr->anyString();
44 $comparisonCond =
'old_text ' .
$dbr->buildLike( $any, $search, $any );
49 'rev_id = page_latest',
50 'rev_text_id = old_id'
56 'ORDER BY' =>
'page_namespace, page_title',
71 if (
strval( $category ) !==
'' ) {
72 $category = Title::newFromText( $category )->getDbKey();
74 $conds[] =
'page_id = cl_from';
75 $conds[
'cl_to'] = $category;
84 if (
strval( $prefix ) ===
'' ) {
89 $title = Title::newFromText( $prefix );
91 $prefix = $title->getDbKey();
93 $any =
$dbr->anyString();
94 $conds[] =
'page_title ' .
$dbr->buildLike( $prefix, $any );
104 if (
$dbr->getType() ==
'postgres' ) {
109 return "$column $op " .
$dbr->addQuotes( $regex );
130 $vars = [
'page_title',
'page_namespace' ];
136 $any =
$dbr->anyString();
137 $comparisonCond =
'page_title ' .
$dbr->buildLike( $any, $str, $any );
146 $sort = [
'ORDER BY' =>
'page_namespace, page_title' ];
162 return preg_replace(
"/$escapedSearch/Uu", $replacement, $text );
164 return str_replace( $search, $replacement, $text );
177 $oldTitleText = $title->getText();
179 return Title::makeTitleSafe( $title->getNamespace(), $newTitleText );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
static categoryCondition( $category, &$tables, &$conds)
static regexCond( $dbr, $column, $regex)
static doSearchQuery( $search, $namespaces, $category, $prefix, $use_regex=false)
static getReplacedText( $text, $search, $replacement, $regex)
Do a replacement on a string.
static getReplacedTitle(Title $title, $search, $replacement, $regex)
Do a replacement on a title.
static prefixCondition( $prefix, &$conds)
static getMatchingTitles( $str, $namespaces, $category, $prefix, $use_regex=false)
Represents a title within MediaWiki.
static configuration should be added through ResourceLoaderGetConfigVars instead & $vars
namespace and then decline to actually register it & $namespaces
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist & $tables