MediaWiki  master
TempUserConfig.php
Go to the documentation of this file.
1 <?php
2 
4 
14 interface TempUserConfig {
20  public function isEnabled();
21 
28  public function isAutoCreateAction( string $action );
29 
37  public function isTempName( string $name );
38 
47  public function isReservedName( string $name );
48 
54  public function getPlaceholderName(): string;
55 }
Interface for temporary user creation config and name matching.
isTempName(string $name)
Does the name match the configured pattern indicating that it is a temporary auto-created user?
getPlaceholderName()
Get a placeholder name which matches the reserved prefix.
isReservedName(string $name)
Does the name match a configured pattern which indicates that it conflicts with temporary user names?...
isAutoCreateAction(string $action)
Is the action valid for user auto-creation?
isEnabled()
Is temp user creation enabled?