MediaWiki  1.23.2
PathRouterPatternReplacer Class Reference

Public Member Functions

 replace ( $value)
 Replace keys inside path router patterns with text. More...
 

Public Attributes

 $error
 
 $key
 
 $params
 

Protected Member Functions

 callback ( $m)
 

Detailed Description

Definition at line 356 of file PathRouter.php.

Member Function Documentation

◆ callback()

PathRouterPatternReplacer::callback (   $m)
protected
Parameters
$marray
Returns
string

Definition at line 381 of file PathRouter.php.

References $key, and key.

◆ replace()

PathRouterPatternReplacer::replace (   $value)

Replace keys inside path router patterns with text.

We do this inside of a replacement callback because after replacement we can't tell the difference between a $1 that was not replaced and a $1 that was part of the content a $1 was replaced with.

Parameters
$valuestring
Returns
string

Definition at line 368 of file PathRouter.php.

References $value, and array().

Member Data Documentation

◆ $error

PathRouterPatternReplacer::$error

Definition at line 358 of file PathRouter.php.

◆ $key

PathRouterPatternReplacer::$key

Definition at line 358 of file PathRouter.php.

Referenced by callback().

◆ $params

PathRouterPatternReplacer::$params

Definition at line 358 of file PathRouter.php.


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