MediaWiki REL1_31
|
This class has been replaced by the PreferencesFactory service. More...
Static Public Member Functions | |
static | cleanSignature ( $signature, $alldata, $form) |
static | datetimePreferences ( $user, IContextSource $context, &$defaultPreferences) |
static | editingPreferences ( $user, IContextSource $context, &$defaultPreferences) |
static | filesPreferences ( $user, IContextSource $context, &$defaultPreferences) |
static | filterIntval ( $value, $alldata) |
static | filterTimezoneInput ( $tz, $alldata) |
static | generateSkinOptions ( $user, IContextSource $context) |
static | getDateOptions (IContextSource $context) |
static | getFormObject ( $user, IContextSource $context, $formClass=PreferencesForm::class, array $remove=[]) |
static | getImageSizes (IContextSource $context) |
static | getOptionFromUser ( $name, $info, $user) |
Pull option from a user account. | |
static | getPreferences ( $user, IContextSource $context) |
static | getSaveBlacklist () |
static | getThumbSizes (IContextSource $context) |
static | getTimeZoneList (Language $language) |
Get a list of all time zones. | |
static | getTimezoneOptions (IContextSource $context) |
static | loadPreferenceValues ( $user, $context, &$defaultPreferences) |
Loads existing values for a given array of preferences. | |
static | miscPreferences ( $user, IContextSource $context, &$defaultPreferences) |
Dummy, kept for backwards-compatibility. | |
static | profilePreferences ( $user, IContextSource $context, &$defaultPreferences) |
static | rcPreferences ( $user, IContextSource $context, &$defaultPreferences) |
static | renderingPreferences ( $user, IContextSource $context, &$defaultPreferences) |
static | searchPreferences ( $user, IContextSource $context, &$defaultPreferences) |
static | skinPreferences ( $user, IContextSource $context, &$defaultPreferences) |
static | tryFormSubmit ( $formData, $form) |
Handle the form submission if everything validated properly. | |
static | tryUISubmit ( $formData, $form) |
static | validateSignature ( $signature, $alldata, $form) |
static | watchlistPreferences ( $user, IContextSource $context, &$defaultPreferences) |
Static Protected Member Functions | |
static | getDefaultPreferencesFactory () |
A shim to maintain backwards-compatibility of this class, basically replicating the default behaviour of the PreferencesFactory service but not permitting overriding. | |
This class has been replaced by the PreferencesFactory service.
Definition at line 30 of file Preferences.php.
|
static |
string | $signature | |
array | $alldata | |
HTMLForm | $form |
Definition at line 256 of file Preferences.php.
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 132 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 156 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 119 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().
|
static |
|
static |
|
static |
User | $user | |
IContextSource | $context |
Definition at line 211 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().
|
static |
|
staticprotected |
A shim to maintain backwards-compatibility of this class, basically replicating the default behaviour of the PreferencesFactory service but not permitting overriding.
Definition at line 37 of file Preferences.php.
References $linkRenderer, and $wgContLang.
Referenced by getFormObject(), getPreferences(), tryFormSubmit(), and tryUISubmit().
|
static |
User | $user | |
IContextSource | $context | |
string | $formClass | |
array | $remove | Array of items to remove |
Definition at line 267 of file Preferences.php.
References $context, and getDefaultPreferencesFactory().
|
static |
|
static |
Pull option from a user account.
Handles stuff like array-type preferences.
string | $name | |
array | $info | |
User | $user |
Definition at line 86 of file Preferences.php.
|
static |
MWException |
User | $user | |
IContextSource | $context |
Definition at line 61 of file Preferences.php.
References $context, and getDefaultPreferencesFactory().
Referenced by datetimePreferences(), editingPreferences(), filesPreferences(), generateSkinOptions(), PreferencesTest\prefsFor(), profilePreferences(), rcPreferences(), renderingPreferences(), searchPreferences(), skinPreferences(), and watchlistPreferences().
|
static |
Definition at line 51 of file Preferences.php.
|
static |
|
static |
Get a list of all time zones.
Definition at line 335 of file Preferences.php.
|
static |
|
static |
Loads existing values for a given array of preferences.
MWException |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences | Array to load values for |
Definition at line 74 of file Preferences.php.
|
static |
Dummy, kept for backwards-compatibility.
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 203 of file Preferences.php.
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 96 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 168 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 144 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 190 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 109 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().
|
static |
Handle the form submission if everything validated properly.
array | $formData | |
PreferencesForm | $form |
Definition at line 312 of file Preferences.php.
References getDefaultPreferencesFactory().
|
static |
array | $formData | |
PreferencesForm | $form |
Definition at line 322 of file Preferences.php.
References getDefaultPreferencesFactory().
|
static |
string | $signature | |
array | $alldata | |
HTMLForm | $form |
Definition at line 246 of file Preferences.php.
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 178 of file Preferences.php.
References $context, getPreferences(), and wfDeprecated().