MediaWiki  1.28.0
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 357 of file PathRouter.php.

Member Function Documentation

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

Definition at line 382 of file PathRouter.php.

References $key, and key.

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
string$value
Returns
string

Definition at line 369 of file PathRouter.php.

References $value.

Member Data Documentation

PathRouterPatternReplacer::$error

Definition at line 359 of file PathRouter.php.

PathRouterPatternReplacer::$key

Definition at line 359 of file PathRouter.php.

Referenced by callback().

PathRouterPatternReplacer::$params

Definition at line 359 of file PathRouter.php.


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