MediaWiki  1.32.5
HashtableReplacer Class Reference

Class to perform replacement based on a simple hashtable lookup. More...

Inheritance diagram for HashtableReplacer:
Collaboration diagram for HashtableReplacer:

Public Member Functions

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

Public Attributes

 $index
 

Private Attributes

 $table
 

Detailed Description

Class to perform replacement based on a simple hashtable lookup.

Deprecated:
since 1.32, use a Closure instead

Definition at line 26 of file HashtableReplacer.php.

Constructor & Destructor Documentation

◆ __construct()

HashtableReplacer::__construct (   $table,
  $index = 0 
)
Parameters
array$table
int$index

Definition at line 33 of file HashtableReplacer.php.

References $index, $table, table, and wfDeprecated().

Member Function Documentation

◆ replace()

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

Reimplemented from Replacer.

Definition at line 43 of file HashtableReplacer.php.

References $index, and table.

Member Data Documentation

◆ $index

HashtableReplacer::$index

Definition at line 27 of file HashtableReplacer.php.

Referenced by __construct(), and replace().

◆ $table

HashtableReplacer::$table
private

Definition at line 27 of file HashtableReplacer.php.

Referenced by __construct().


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