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

Member Function Documentation

◆ callback()

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

Definition at line 382 of file PathRouter.php.

References $key, error, 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
string$value
Returns
string|false

Definition at line 369 of file PathRouter.php.

References $value, and error.

Member Data Documentation

◆ $error

PathRouterPatternReplacer::$error

Definition at line 359 of file PathRouter.php.

◆ $key

PathRouterPatternReplacer::$key

Definition at line 359 of file PathRouter.php.

Referenced by callback().

◆ $params

PathRouterPatternReplacer::$params

Definition at line 359 of file PathRouter.php.


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