MediaWiki REL1_31
ReplaceTextSearch Class Reference

Static Public Member Functions

static categoryCondition ( $category, &$tables, &$conds)
 
static doSearchQuery ( $search, $namespaces, $category, $prefix, $use_regex=false)
 
static prefixCondition ( $prefix, &$conds)
 
static regexCond ( $dbr, $column, $regex)
 

Detailed Description

Definition at line 24 of file ReplaceTextSearch.php.

Member Function Documentation

◆ categoryCondition()

static ReplaceTextSearch::categoryCondition ( $category,
& $tables,
& $conds )
static
Parameters
string$category
array&$tables
array&$conds

Definition at line 70 of file ReplaceTextSearch.php.

References $tables.

Referenced by doSearchQuery(), and SpecialReplaceText\getMatchingTitles().

◆ doSearchQuery()

static ReplaceTextSearch::doSearchQuery ( $search,
$namespaces,
$category,
$prefix,
$use_regex = false )
static
Parameters
string$search
array$namespaces
string$category
string$prefix
bool$use_regex
Returns
IResultWrapper Resulting rows

Definition at line 34 of file ReplaceTextSearch.php.

References $dbr, $namespaces, $options, $tables, $vars, categoryCondition(), DB_REPLICA, prefixCondition(), regexCond(), and wfGetDB().

Referenced by ReplaceAll\execute(), SpecialReplaceText\getAnyWarningMessageBeforeReplace(), and SpecialReplaceText\getTitlesForEditingWithContext().

◆ prefixCondition()

static ReplaceTextSearch::prefixCondition ( $prefix,
& $conds )
static
Parameters
string$prefix
array&$conds

Definition at line 83 of file ReplaceTextSearch.php.

References $dbr, DB_REPLICA, and wfGetDB().

Referenced by doSearchQuery(), and SpecialReplaceText\getMatchingTitles().

◆ regexCond()

static ReplaceTextSearch::regexCond ( $dbr,
$column,
$regex )
static
Parameters
Database$dbr
string$column
string$regex
Returns
string query condition for regex

Definition at line 103 of file ReplaceTextSearch.php.

References $dbr.

Referenced by doSearchQuery(), and SpecialReplaceText\getMatchingTitles().


The documentation for this class was generated from the following file: