MediaWiki REL1_39
|
Helper for TempUserConfig representing string patterns with "$1" indicating variable substitution. More...
Public Member Functions | |
__construct (string $debugName, string $pattern) | |
generate ( $mappedSerial) | |
Substitute the serial number into the pattern. | |
isMatch (string $name) | |
Does the pattern match the given name? | |
Helper for TempUserConfig representing string patterns with "$1" indicating variable substitution.
Definition at line 11 of file Pattern.php.
MediaWiki\User\TempUser\Pattern::__construct | ( | string | $debugName, |
string | $pattern ) |
string | $debugName | The name of the pattern, for use in error messages |
string | $pattern | The pattern itself |
Definition at line 25 of file Pattern.php.
MediaWiki\User\TempUser\Pattern::generate | ( | $mappedSerial | ) |
Substitute the serial number into the pattern.
string | $mappedSerial |
Definition at line 54 of file Pattern.php.
MediaWiki\User\TempUser\Pattern::isMatch | ( | string | $name | ) |
Does the pattern match the given name?
string | $name |
Definition at line 35 of file Pattern.php.