MediaWiki REL1_31
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 ()
 

Private Attributes

 $index
 
 $table
 

Detailed Description

Class to perform replacement based on a simple hashtable lookup.

Definition at line 24 of file HashtableReplacer.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 31 of file HashtableReplacer.php.

References $index, $table, and table.

Member Function Documentation

◆ replace()

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

Reimplemented from Replacer.

Definition at line 40 of file HashtableReplacer.php.

References $index, and table.

Member Data Documentation

◆ $index

HashtableReplacer::$index
private

Definition at line 25 of file HashtableReplacer.php.

Referenced by __construct(), and replace().

◆ $table

HashtableReplacer::$table
private

Definition at line 25 of file HashtableReplacer.php.

Referenced by __construct().


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