MediaWiki
master
CreationReasonAuthenticationRequest.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Auth
;
4
13
class
CreationReasonAuthenticationRequest
extends
AuthenticationRequest
{
15
public
$reason
;
16
18
public
$required
=
self::OPTIONAL
;
19
24
public
function
getFieldInfo
() {
25
return
[
26
'reason'
=> [
27
'type'
=>
'string'
,
28
'label'
=>
wfMessage
(
'createacct-reason'
),
29
'help'
=>
wfMessage
(
'createacct-reason-help'
),
30
],
31
];
32
}
33
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:821
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition
AuthenticationRequest.php:28
MediaWiki\Auth\AuthenticationRequest\OPTIONAL
const OPTIONAL
Indicates that the request is not required for authentication to proceed.
Definition
AuthenticationRequest.php:31
MediaWiki\Auth\CreationReasonAuthenticationRequest
Authentication request for the reason given for account creation.
Definition
CreationReasonAuthenticationRequest.php:13
MediaWiki\Auth\CreationReasonAuthenticationRequest\getFieldInfo
getFieldInfo()
Fetch input field info.This will be used in the AuthManager APIs and web UIs to define API input para...
Definition
CreationReasonAuthenticationRequest.php:24
MediaWiki\Auth\CreationReasonAuthenticationRequest\$reason
string $reason
Account creation reason (only used when creating for someone else)
Definition
CreationReasonAuthenticationRequest.php:15
MediaWiki\Auth\CreationReasonAuthenticationRequest\$required
$required
Definition
CreationReasonAuthenticationRequest.php:18
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:7
includes
Auth
CreationReasonAuthenticationRequest.php
Generated on Wed Jan 14 2026 00:23:56 for MediaWiki by
1.10.0