MediaWiki
REL1_41
PreferencesFactory.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Preferences
;
22
23
use
HTMLForm
;
24
use
IContextSource
;
25
use
MediaWiki\User\User
;
26
use
PreferencesFormOOUI
;
27
54
interface
PreferencesFactory
{
55
65
public
function
getForm
(
66
User
$user,
67
IContextSource
$contextSource,
68
$formClass = PreferencesFormOOUI::class,
69
array $remove = []
70
);
71
78
public
function
getFormDescriptor
(
User
$user,
IContextSource
$contextSource );
79
85
public
function
getSaveBlacklist
();
86
}
HTMLForm
Object handling generic submission, CSRF protection, layout and other logic for UI forms in a reusabl...
Definition
HTMLForm.php:158
MediaWiki\User\User
internal since 1.36
Definition
User.php:98
PreferencesFormOOUI
Form to edit user preferences.
Definition
PreferencesFormOOUI.php:28
IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition
IContextSource.php:64
MediaWiki\Preferences\PreferencesFactory
A PreferencesFactory is a MediaWiki service that provides the definitions of preferences for a given ...
Definition
PreferencesFactory.php:54
MediaWiki\Preferences\PreferencesFactory\getFormDescriptor
getFormDescriptor(User $user, IContextSource $contextSource)
Get the preferences form descriptor.
MediaWiki\Preferences\PreferencesFactory\getForm
getForm(User $user, IContextSource $contextSource, $formClass=PreferencesFormOOUI::class, array $remove=[])
Get the preferences form for a given user.
MediaWiki\Preferences\PreferencesFactory\getSaveBlacklist
getSaveBlacklist()
Get the names of preferences that should never be saved (such as 'realname' and 'emailaddress').
MediaWiki\Preferences
Definition
DefaultPreferencesFactory.php:21
includes
preferences
PreferencesFactory.php
Generated on Sat Nov 23 2024 08:24:24 for MediaWiki by
1.10.0