MediaWiki  master
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 $matches, array(), replace(), and wfDeprecated().

◆ replace()

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

Referenced by cb().


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