MediaWiki
REL1_34
CreationReasonAuthenticationRequest.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Auth
;
4
9
class
CreationReasonAuthenticationRequest
extends
AuthenticationRequest
{
11
public
$reason
;
12
13
public
$required
=
self::OPTIONAL
;
14
15
public
function
getFieldInfo
() {
16
return
[
17
'reason'
=> [
18
'type'
=>
'string'
,
19
'label'
=>
wfMessage
(
'createacct-reason'
),
20
'help'
=>
wfMessage
(
'createacct-reason-help'
),
21
],
22
];
23
}
24
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:1263
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition
AuthenticationRequest.php:37
MediaWiki\Auth\AuthenticationRequest\OPTIONAL
const OPTIONAL
Indicates that the request is not required for authentication to proceed.
Definition
AuthenticationRequest.php:40
MediaWiki\Auth\CreationReasonAuthenticationRequest
Authentication request for the reason given for account creation.
Definition
CreationReasonAuthenticationRequest.php:9
MediaWiki\Auth\CreationReasonAuthenticationRequest\getFieldInfo
getFieldInfo()
Fetch input field info.
Definition
CreationReasonAuthenticationRequest.php:15
MediaWiki\Auth\CreationReasonAuthenticationRequest\$reason
string $reason
Account creation reason (only used when creating for someone else)
Definition
CreationReasonAuthenticationRequest.php:11
MediaWiki\Auth\CreationReasonAuthenticationRequest\$required
$required
Definition
CreationReasonAuthenticationRequest.php:13
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:22
includes
auth
CreationReasonAuthenticationRequest.php
Generated on Fri Apr 5 2024 23:09:41 for MediaWiki by
1.9.8