MediaWiki master
CreationReasonAuthenticationRequest.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Auth;
4
12 public $reason;
13
16
21 public function getFieldInfo() {
22 return [
23 'reason' => [
24 'type' => 'string',
25 'label' => wfMessage( 'createacct-reason' ),
26 'help' => wfMessage( 'createacct-reason-help' ),
27 ],
28 ];
29 }
30}
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
This is a value object for authentication requests.
const OPTIONAL
Indicates that the request is not required for authentication to proceed.
Authentication request for the reason given for account creation.
getFieldInfo()
Fetch input field info.This will be used in the AuthManager APIs and web UIs to define API input para...
string $reason
Account creation reason (only used when creating for someone else)