MediaWiki REL1_31
PreferencesFactory.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Preferences;
22
23use HTMLForm;
25use User;
26
52
62 public function getForm(
63 User $user,
64 IContextSource $contextSource,
65 $formClass = \PreferencesForm::class,
66 array $remove = []
67 );
68
75 public function getFormDescriptor( User $user, IContextSource $contextSource );
76
82 public function getSaveBlacklist();
83}
Object handling generic submission, CSRF protection, layout and other logic for UI forms.
Definition HTMLForm.php:130
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:53
Interface for objects which can provide a MediaWiki context on request.
A PreferencesFactory is a MediaWiki service that provides the definitions of preferences for a given ...
getFormDescriptor(User $user, IContextSource $contextSource)
Get the preferences form descriptor.
getSaveBlacklist()
Get the names of preferences that should never be saved (such as 'realname' and 'emailaddress').
getForm(User $user, IContextSource $contextSource, $formClass=\PreferencesForm::class, array $remove=[])
Get the preferences form for a given user.