MediaWiki REL1_41
|
Interface for temporary user creation config and name matching. More...
Inherited by MediaWiki\User\TempUser\RealTempUserConfig, and MediaWiki\User\TempUser\TempUserCreator.
Public Member Functions | |
getMatchPattern () | |
Get a Pattern indicating how temporary account can be detected. | |
getPlaceholderName () | |
Get a placeholder name which matches the reserved prefix. | |
isAutoCreateAction (string $action) | |
Is the action valid for user auto-creation? | |
isEnabled () | |
Is temp user creation enabled? | |
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? | |
isTempName (string $name) | |
Does the name match the configured pattern indicating that it is a temporary auto-created user? | |
shouldAutoCreate (Authority $authority, string $action) | |
Should/would auto-create be performed if the user attempts to perform the given action? | |
Interface for temporary user creation config and name matching.
This is separate from TempUserCreator to avoid dependency loops during service construction, since TempUserCreator needs UserNameUtils which needs TempUserConfig.
Definition at line 16 of file TempUserConfig.php.
MediaWiki\User\TempUser\TempUserConfig::getMatchPattern | ( | ) |
Get a Pattern indicating how temporary account can be detected.
Used to avoid selecting a temp account via select queries.
Implemented in MediaWiki\User\TempUser\RealTempUserConfig, and MediaWiki\User\TempUser\TempUserCreator.
MediaWiki\User\TempUser\TempUserConfig::getPlaceholderName | ( | ) |
Get a placeholder name which matches the reserved prefix.
Implemented in MediaWiki\User\TempUser\RealTempUserConfig, and MediaWiki\User\TempUser\TempUserCreator.
MediaWiki\User\TempUser\TempUserConfig::isAutoCreateAction | ( | string | $action | ) |
Is the action valid for user auto-creation?
string | $action |
Implemented in MediaWiki\User\TempUser\RealTempUserConfig, and MediaWiki\User\TempUser\TempUserCreator.
MediaWiki\User\TempUser\TempUserConfig::isEnabled | ( | ) |
Is temp user creation enabled?
Implemented in MediaWiki\User\TempUser\RealTempUserConfig, and MediaWiki\User\TempUser\TempUserCreator.
MediaWiki\User\TempUser\TempUserConfig::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 |
Implemented in MediaWiki\User\TempUser\RealTempUserConfig, and MediaWiki\User\TempUser\TempUserCreator.
MediaWiki\User\TempUser\TempUserConfig::isTempName | ( | string | $name | ) |
Does the name match the configured pattern indicating that it is a temporary auto-created user?
string | $name |
Implemented in MediaWiki\User\TempUser\RealTempUserConfig, and MediaWiki\User\TempUser\TempUserCreator.
MediaWiki\User\TempUser\TempUserConfig::shouldAutoCreate | ( | Authority | $authority, |
string | $action ) |
Should/would auto-create be performed if the user attempts to perform the given action?
Authority | $authority | |
string | $action |
Implemented in MediaWiki\User\TempUser\RealTempUserConfig, and MediaWiki\User\TempUser\TempUserCreator.