MediaWiki
1.33.0
|
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 | generateSkinOptions ( $user, IContextSource $context) |
static | getDateOptions (IContextSource $context) |
static | getFormObject ( $user, IContextSource $context, $formClass=PreferencesFormLegacy::class, array $remove=[]) |
static | getImageSizes (IContextSource $context) |
static | getOptionFromUser ( $name, $info, $user) |
Pull option from a user account. More... | |
static | getPreferences ( $user, IContextSource $context) |
static | getThumbSizes (IContextSource $context) |
static | loadPreferenceValues ( $user, $context, &$defaultPreferences) |
Loads existing values for a given array of preferences. More... | |
static | miscPreferences ( $user, IContextSource $context, &$defaultPreferences) |
Dummy, kept for backwards-compatibility. More... | |
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 | 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. More... | |
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 252 of file Preferences.php.
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 127 of file Preferences.php.
References $context, $user, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 151 of file Preferences.php.
References $context, $user, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 114 of file Preferences.php.
References $context, $user, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context |
Definition at line 207 of file Preferences.php.
References $context, $user, 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 $services.
Referenced by getFormObject(), and getPreferences().
|
static |
User | $user | |
IContextSource | $context | |
string | $formClass | |
array | $remove | Array of items to remove |
Definition at line 263 of file Preferences.php.
References $context, $user, getDefaultPreferencesFactory(), and wfDeprecated().
|
static |
|
static |
Pull option from a user account.
Handles stuff like array-type preferences.
string | $name | |
array | $info | |
User | $user |
Definition at line 81 of file Preferences.php.
|
static |
MWException |
User | $user | |
IContextSource | $context |
Definition at line 55 of file Preferences.php.
References $context, $user, getDefaultPreferencesFactory(), and wfDeprecated().
Referenced by datetimePreferences(), editingPreferences(), filesPreferences(), generateSkinOptions(), profilePreferences(), rcPreferences(), renderingPreferences(), searchPreferences(), skinPreferences(), and watchlistPreferences().
|
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 69 of file Preferences.php.
|
static |
Dummy, kept for backwards-compatibility.
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 198 of file Preferences.php.
References wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 91 of file Preferences.php.
References $context, $user, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 163 of file Preferences.php.
References $context, $user, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 139 of file Preferences.php.
References $context, $user, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 185 of file Preferences.php.
References $context, $user, getPreferences(), and wfDeprecated().
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 104 of file Preferences.php.
References $context, $user, getPreferences(), and wfDeprecated().
|
static |
string | $signature | |
array | $alldata | |
HTMLForm | $form |
Definition at line 242 of file Preferences.php.
|
static |
User | $user | |
IContextSource | $context | |
array | &$defaultPreferences |
Definition at line 173 of file Preferences.php.
References $context, $user, getPreferences(), and wfDeprecated().