MediaWiki
master
TempUserConfig.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\User\TempUser
;
4
5
use
MediaWiki\Permissions\Authority
;
6
16
interface
TempUserConfig
{
22
public
function
isEnabled
();
23
30
public
function
isAutoCreateAction
(
string
$action );
31
41
public
function
shouldAutoCreate
(
Authority
$authority,
string
$action );
42
50
public
function
isTempName
(
string
$name );
51
60
public
function
isReservedName
(
string
$name );
61
67
public
function
getPlaceholderName
(): string;
68
76
public
function
getMatchPattern
():
Pattern
;
77
}
MediaWiki\User\TempUser\Pattern
Helper for TempUserConfig representing string patterns with "$1" indicating variable substitution.
Definition:
Pattern.php:13
MediaWiki\Permissions\Authority
This interface represents the authority associated the current execution context, such as a web reque...
Definition:
Authority.php:37
MediaWiki\User\TempUser\TempUserConfig
Interface for temporary user creation config and name matching.
Definition:
TempUserConfig.php:16
MediaWiki\User\TempUser\TempUserConfig\shouldAutoCreate
shouldAutoCreate(Authority $authority, string $action)
Should/would auto-create be performed if the user attempts to perform the given action?
MediaWiki\User\TempUser\TempUserConfig\getMatchPattern
getMatchPattern()
Get a Pattern indicating how temporary account can be detected.
MediaWiki\User\TempUser\TempUserConfig\isTempName
isTempName(string $name)
Does the name match the configured pattern indicating that it is a temporary auto-created user?
MediaWiki\User\TempUser\TempUserConfig\getPlaceholderName
getPlaceholderName()
Get a placeholder name which matches the reserved prefix.
MediaWiki\User\TempUser\TempUserConfig\isReservedName
isReservedName(string $name)
Does the name match a configured pattern which indicates that it conflicts with temporary user names?...
MediaWiki\User\TempUser\TempUserConfig\isAutoCreateAction
isAutoCreateAction(string $action)
Is the action valid for user auto-creation?
MediaWiki\User\TempUser\TempUserConfig\isEnabled
isEnabled()
Is temp user creation enabled?
MediaWiki\User\TempUser
Definition:
CreateStatus.php:3
includes
user
TempUser
TempUserConfig.php
Generated on Sat Sep 23 2023 06:09:54 for MediaWiki by
1.9.1