MediaWiki  1.32.5
DoubleReplacer Class Reference

Class to perform secondary replacement within each replacement string. More...

Inheritance diagram for DoubleReplacer:
Collaboration diagram for DoubleReplacer:

Public Member Functions

 __construct ( $from, $to, $index=0)
 
 replace (array $matches)
 
- Public Member Functions inherited from Replacer
 cb ()
 

Detailed Description

Class to perform secondary replacement within each replacement string.

Deprecated:
since 1.32, use a Closure instead

Definition at line 26 of file DoubleReplacer.php.

Constructor & Destructor Documentation

◆ __construct()

DoubleReplacer::__construct (   $from,
  $to,
  $index = 0 
)
Parameters
mixed$from
mixed$to
int$index

Definition at line 32 of file DoubleReplacer.php.

References from, and wfDeprecated().

Member Function Documentation

◆ replace()

DoubleReplacer::replace ( array  $matches)
Parameters
array$matches
Returns
mixed

Reimplemented from Replacer.

Definition at line 43 of file DoubleReplacer.php.

References $matches, and from.


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