Go to the documentation of this file.
31 parent::__construct(
'Preferences' );
43 if ( $par ==
'reset' ) {
49 $out->addModules(
'mediawiki.special.preferences' );
51 if ( $this->
getRequest()->getCheck(
'success' ) ) {
53 "<div class=\"successbox\">\n$1\n</div>",
59 $htmlForm->setSubmitCallback(
array(
'Preferences',
'tryUISubmit' ) );
65 if ( !$this->
getUser()->isAllowed(
'editmyoptions' ) ) {
69 $this->
getOutput()->addWikiMsg(
'prefs-reset-intro' );
73 $htmlForm =
new HTMLForm(
array(), $context,
'prefs-restore' );
75 $htmlForm->setSubmitTextMsg(
'restoreprefs' );
76 $htmlForm->setSubmitCallback(
array( $this,
'submitReset' ) );
77 $htmlForm->suppressReset();
83 if ( !$this->
getUser()->isAllowed(
'editmyoptions' ) ) {
89 $user->saveSettings();
getPageTitle( $subpage=false)
Get a self-referential title object.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
getOutput()
Get the OutputPage being used for this instance.
A special page that allows users to change their preferences.
execute( $par)
Default execute method Checks user permissions, calls the function given in mFunction.
Show an error when a user tries to do something they do not have the necessary permissions for.
requireLogin( $reasonMsg=null, $titleMsg=null)
If the user is not logged in, throws UserNotLoggedIn error.
An IContextSource implementation which will inherit context from another source but allow individual ...
static getFormObject( $user, IContextSource $context, $formClass='PreferencesForm', array $remove=array())
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getUser()
Shortcut to get the User executing this instance.
getContext()
Gets the context this SpecialPage is executed in.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Parent class for all special pages.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add etc
getRequest()
Get the WebRequest being used for this instance.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
Please log in again after you receive it</td >< td > s a saved copy from
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
checkReadOnly()
If the wiki is currently in readonly mode, throws a ReadOnlyError.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...