MediaWiki
REL1_40
CreationReasonAuthenticationRequest.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Auth
;
4
10
class
CreationReasonAuthenticationRequest
extends
AuthenticationRequest
{
12
public
$reason
;
13
14
public
$required
=
self::OPTIONAL
;
15
20
public
function
getFieldInfo
() {
21
return
[
22
'reason'
=> [
23
'type'
=>
'string'
,
24
'label'
=>
wfMessage
(
'createacct-reason'
),
25
'help'
=>
wfMessage
(
'createacct-reason-help'
),
26
],
27
];
28
}
29
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:893
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition
AuthenticationRequest.php:44
MediaWiki\Auth\AuthenticationRequest\OPTIONAL
const OPTIONAL
Indicates that the request is not required for authentication to proceed.
Definition
AuthenticationRequest.php:47
MediaWiki\Auth\CreationReasonAuthenticationRequest
Authentication request for the reason given for account creation.
Definition
CreationReasonAuthenticationRequest.php:10
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:20
MediaWiki\Auth\CreationReasonAuthenticationRequest\$reason
string $reason
Account creation reason (only used when creating for someone else)
Definition
CreationReasonAuthenticationRequest.php:12
MediaWiki\Auth\CreationReasonAuthenticationRequest\$required
$required
Definition
CreationReasonAuthenticationRequest.php:14
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:22
includes
auth
CreationReasonAuthenticationRequest.php
Generated on Thu Jun 27 2024 14:02:22 for MediaWiki by
1.10.0