39 $authManager = AuthManager::singleton();
40 $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
41 $config = MediaWikiServices::getInstance()->getMainConfig();
45 return $preferencesFactory;
52 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
63 return $preferencesFactory->getFormDescriptor( $user,
$context );
75 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
87 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
221 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
229 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
237 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
247 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
257 throw new Exception( __METHOD__ .
'() is deprecated and does nothing now' );
270 $formClass = PreferencesForm::class,
274 return $preferencesFactory->getForm( $user,
$context, $formClass, $remove );
282 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
291 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
300 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
314 return $preferencesFactory->legacySaveFormData( $formData, $form );
324 return $preferencesFactory->legacySubmitForm( $formData, $form );
336 throw new Exception( __METHOD__ .
'() is deprecated and does nothing' );
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Internationalisation code.
This class has been replaced by the PreferencesFactory service.
static getDefaultPreferencesFactory()
A shim to maintain backwards-compatibility of this class, basically replicating the default behaviour...
static getOptionFromUser( $name, $info, $user)
Pull option from a user account.
static searchPreferences( $user, IContextSource $context, &$defaultPreferences)
static rcPreferences( $user, IContextSource $context, &$defaultPreferences)
static filterIntval( $value, $alldata)
static generateSkinOptions( $user, IContextSource $context)
static loadPreferenceValues( $user, $context, &$defaultPreferences)
Loads existing values for a given array of preferences.
static getSaveBlacklist()
static tryUISubmit( $formData, $form)
static filesPreferences( $user, IContextSource $context, &$defaultPreferences)
static getImageSizes(IContextSource $context)
static getPreferences( $user, IContextSource $context)
static getTimeZoneList(Language $language)
Get a list of all time zones.
static watchlistPreferences( $user, IContextSource $context, &$defaultPreferences)
static datetimePreferences( $user, IContextSource $context, &$defaultPreferences)
static tryFormSubmit( $formData, $form)
Handle the form submission if everything validated properly.
static getDateOptions(IContextSource $context)
static miscPreferences( $user, IContextSource $context, &$defaultPreferences)
Dummy, kept for backwards-compatibility.
static profilePreferences( $user, IContextSource $context, &$defaultPreferences)
static getFormObject( $user, IContextSource $context, $formClass=PreferencesForm::class, array $remove=[])
static cleanSignature( $signature, $alldata, $form)
static renderingPreferences( $user, IContextSource $context, &$defaultPreferences)
static getTimezoneOptions(IContextSource $context)
static skinPreferences( $user, IContextSource $context, &$defaultPreferences)
static getThumbSizes(IContextSource $context)
static filterTimezoneInput( $tz, $alldata)
static validateSignature( $signature, $alldata, $form)
static editingPreferences( $user, IContextSource $context, &$defaultPreferences)
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the local content language as $wgContLang
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing after in associative array form before processing starts Return false to skip default processing and return $ret $linkRenderer
Interface for objects which can provide a MediaWiki context on request.