MediaWiki
master
Toggle main menu visibility
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:548
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition
AuthenticationRequest.php:29
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
includes
Auth
CreationReasonAuthenticationRequest.php
Generated on
for MediaWiki by
1.18.0