MediaWiki
master
|
The real TempUserConfig including internal methods used by TempUserCreator. More...
Public Member Functions | |
__construct ( $config) | |
getGeneratorPattern () | |
getMatchPattern () | |
Get a Pattern indicating how temporary account can be detected. More... | |
getPlaceholderName () | |
Get a placeholder name which matches the reserved prefix. More... | |
getSerialMappingConfig () | |
getSerialProviderConfig () | |
isAutoCreateAction (string $action) | |
Is the action valid for user auto-creation? More... | |
isEnabled () | |
Is temp user creation enabled? More... | |
isReservedName (string $name) | |
Does the name match a configured pattern which indicates that it conflicts with temporary user names? Should manual user creation be denied? More... | |
isTempName (string $name) | |
Does the name match the configured pattern indicating that it is a temporary auto-created user? More... | |
shouldAutoCreate (Authority $authority, string $action) | |
Should/would auto-create be performed if the user attempts to perform the given action? More... | |
The real TempUserConfig including internal methods used by TempUserCreator.
Definition at line 13 of file RealTempUserConfig.php.
MediaWiki\User\TempUser\RealTempUserConfig::__construct | ( | $config | ) |
array | $config | See the documentation of $wgAutoCreateTempUser.
|
Definition at line 45 of file RealTempUserConfig.php.
MediaWiki\User\TempUser\RealTempUserConfig::getGeneratorPattern | ( | ) |
Definition at line 111 of file RealTempUserConfig.php.
MediaWiki\User\TempUser\RealTempUserConfig::getMatchPattern | ( | ) |
Get a Pattern indicating how temporary account can be detected.
Used to avoid selecting a temp account via select queries.
Implements MediaWiki\User\TempUser\TempUserConfig.
Definition at line 99 of file RealTempUserConfig.php.
MediaWiki\User\TempUser\RealTempUserConfig::getPlaceholderName | ( | ) |
Get a placeholder name which matches the reserved prefix.
Implements MediaWiki\User\TempUser\TempUserConfig.
Definition at line 91 of file RealTempUserConfig.php.
MediaWiki\User\TempUser\RealTempUserConfig::getSerialMappingConfig | ( | ) |
Definition at line 131 of file RealTempUserConfig.php.
Referenced by MediaWiki\User\TempUser\TempUserCreator\__construct().
MediaWiki\User\TempUser\RealTempUserConfig::getSerialProviderConfig | ( | ) |
Definition at line 123 of file RealTempUserConfig.php.
Referenced by MediaWiki\User\TempUser\TempUserCreator\__construct().
MediaWiki\User\TempUser\RealTempUserConfig::isAutoCreateAction | ( | string | $action | ) |
Is the action valid for user auto-creation?
string | $action |
Implements MediaWiki\User\TempUser\TempUserConfig.
Definition at line 67 of file RealTempUserConfig.php.
Referenced by MediaWiki\User\TempUser\RealTempUserConfig\shouldAutoCreate().
MediaWiki\User\TempUser\RealTempUserConfig::isEnabled | ( | ) |
Is temp user creation enabled?
Implements MediaWiki\User\TempUser\TempUserConfig.
Definition at line 63 of file RealTempUserConfig.php.
MediaWiki\User\TempUser\RealTempUserConfig::isReservedName | ( | string | $name | ) |
Does the name match a configured pattern which indicates that it conflicts with temporary user names? Should manual user creation be denied?
string | $name |
Implements MediaWiki\User\TempUser\TempUserConfig.
Definition at line 86 of file RealTempUserConfig.php.
MediaWiki\User\TempUser\RealTempUserConfig::isTempName | ( | string | $name | ) |
Does the name match the configured pattern indicating that it is a temporary auto-created user?
string | $name |
Implements MediaWiki\User\TempUser\TempUserConfig.
Definition at line 81 of file RealTempUserConfig.php.
MediaWiki\User\TempUser\RealTempUserConfig::shouldAutoCreate | ( | Authority | $authority, |
string | $action | ||
) |
Should/would auto-create be performed if the user attempts to perform the given action?
Authority | $authority | |
string | $action |
Implements MediaWiki\User\TempUser\TempUserConfig.
Definition at line 75 of file RealTempUserConfig.php.
References MediaWiki\Permissions\Authority\isAllowed(), MediaWiki\User\TempUser\RealTempUserConfig\isAutoCreateAction(), and MediaWiki\Permissions\Authority\isRegistered().