MediaWiki  1.23.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 ( $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.

Definition at line 386 of file StringUtils.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 393 of file StringUtils.php.

References $index, $table, and table.

Member Function Documentation

◆ replace()

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

Definition at line 402 of file StringUtils.php.

References $index, $matches, and table.

Member Data Documentation

◆ $index

HashtableReplacer::$index

Definition at line 387 of file StringUtils.php.

Referenced by __construct(), and replace().

◆ $table

HashtableReplacer::$table
private

Definition at line 387 of file StringUtils.php.

Referenced by __construct().


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