MediaWiki  1.27.2
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 ()
 
 replace (array $matches)
 

Public Attributes

 $index
 

Private Attributes

 $table
 

Detailed Description

Class to perform replacement based on a simple hashtable lookup.

Definition at line 24 of file HashtableReplacer.php.

Constructor & Destructor Documentation

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

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

Definition at line 40 of file HashtableReplacer.php.

References $index, and table.

Member Data Documentation

HashtableReplacer::$index

Definition at line 25 of file HashtableReplacer.php.

Referenced by __construct(), and replace().

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: