MediaWiki REL1_32
Replacer Class Reference

Base class for "replacers", objects used in preg_replace_callback() and StringUtils::delimiterReplaceCallback() More...

Inheritance diagram for Replacer:

Public Member Functions

 cb ()
 
 replace (array $matches)
 

Detailed Description

Base class for "replacers", objects used in preg_replace_callback() and StringUtils::delimiterReplaceCallback()

Deprecated:
since 1.32, use a Closure instead

Definition at line 27 of file Replacer.php.

Member Function Documentation

◆ cb()

Replacer::cb ( )
Returns
array

Definition at line 31 of file Replacer.php.

References wfDeprecated().

◆ replace()

Replacer::replace ( array  $matches)
abstract
Parameters
array$matches
Returns
string

Reimplemented in DoubleReplacer, HashtableReplacer, and RegexlikeReplacer.


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