MediaWiki
REL1_32
PreferencesFactory.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Preferences
;
22
23
use
HTMLForm
;
24
use
IContextSource
;
25
use
User
;
26
51
interface
PreferencesFactory
{
52
62
public
function
getForm
(
63
User
$user,
64
IContextSource
$contextSource,
65
$formClass = \PreferencesFormLegacy::class,
66
array
$remove = []
67
);
68
75
public
function
getFormDescriptor
(
User
$user,
IContextSource
$contextSource );
76
82
public
function
getSaveBlacklist
();
83
}
HTMLForm
Object handling generic submission, CSRF protection, layout and other logic for UI forms.
Definition
HTMLForm.php:136
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:47
IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition
IContextSource.php:53
MediaWiki\Preferences\PreferencesFactory
A PreferencesFactory is a MediaWiki service that provides the definitions of preferences for a given ...
Definition
PreferencesFactory.php:51
MediaWiki\Preferences\PreferencesFactory\getFormDescriptor
getFormDescriptor(User $user, IContextSource $contextSource)
Get the preferences form descriptor.
MediaWiki\Preferences\PreferencesFactory\getSaveBlacklist
getSaveBlacklist()
Get the names of preferences that should never be saved (such as 'realname' and 'emailaddress').
MediaWiki\Preferences\PreferencesFactory\getForm
getForm(User $user, IContextSource $contextSource, $formClass=\PreferencesFormLegacy::class, array $remove=[])
Get the preferences form for a given user.
array
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
MediaWiki\Preferences
Definition
DefaultPreferencesFactory.php:21
includes
preferences
PreferencesFactory.php
Generated on Mon Nov 25 2024 15:57:30 for MediaWiki by
1.10.0