MediaWiki REL1_39
CreationReasonAuthenticationRequest.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Auth;
4
12 public $reason;
13
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( $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)