MediaWiki master
MediaWiki\User\UserRigorOptions Interface Reference

Shared interface for rigor levels when dealing with User methods. More...

Inherited by MediaWiki\User\UserFactory, and MediaWiki\User\UserNameUtils.

Public Attributes

const RIGOR_CREATABLE = 'creatable'
 Check that a user name is valid for batch processes, login and account creation.
 
const RIGOR_NONE = 'none'
 No validation at all.
 
const RIGOR_USABLE = 'usable'
 Check that a user name is valid for batch processes and login.
 
const RIGOR_VALID = 'valid'
 Check that a user name is valid for batch processes.
 

Detailed Description

Shared interface for rigor levels when dealing with User methods.

Since
1.36
Author
DannyS712

Definition at line 30 of file UserRigorOptions.php.

Member Data Documentation

◆ RIGOR_CREATABLE

const MediaWiki\User\UserRigorOptions::RIGOR_CREATABLE = 'creatable'

Check that a user name is valid for batch processes, login and account creation.

This does not allow auto-created temporary user patterns.

Definition at line 36 of file UserRigorOptions.php.

Referenced by MediaWiki\User\User\newFromName(), and MediaWiki\User\User\newSystemUser().

◆ RIGOR_NONE

const MediaWiki\User\UserRigorOptions::RIGOR_NONE = 'none'

No validation at all.

Definition at line 51 of file UserRigorOptions.php.

Referenced by MediaWiki\User\User\newFromName(), and MediaWiki\User\User\newSystemUser().

◆ RIGOR_USABLE

const MediaWiki\User\UserRigorOptions::RIGOR_USABLE = 'usable'

Check that a user name is valid for batch processes and login.

Definition at line 41 of file UserRigorOptions.php.

Referenced by MediaWiki\User\ExternalUserNames\applyPrefix(), MediaWiki\User\User\newFromName(), and MediaWiki\User\User\newSystemUser().

◆ RIGOR_VALID

const MediaWiki\User\UserRigorOptions::RIGOR_VALID = 'valid'

Check that a user name is valid for batch processes.

Definition at line 46 of file UserRigorOptions.php.

Referenced by MediaWiki\User\User\newFromName(), and MediaWiki\User\User\newSystemUser().


The documentation for this interface was generated from the following file: