Go to the documentation of this file.
36 protected $par =
null;
74 return strtolower( $this->
getName() );
90 if ( !
$form->isVForm() ) {
95 if ( !$headerMsg->isDisabled() ) {
96 $form->addHeaderText( $headerMsg->parseAsBlock() );
142 if ( $form->
show() ) {
166 $block =
$user->getBlock();
onSuccess()
Do something exciting on successful processing of the form, most likely to show a confirmation messag...
getFormFields()
Get an HTMLForm descriptor array.
alterForm(HTMLForm $form)
Play with the HTMLForm if you need to more substantially.
requiresUnblock()
Whether this action cannot be executed by a blocked user.
onSubmit(array $data)
Process the form on POST submission.
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
getForm()
Get the HTMLForm to control behavior.
Show an error when the user tries to do something whilst blocked.
usually copyright or history_copyright This message must be in HTML not wikitext $subpages will be ignored and the rest of subPageSubtitle() will run. 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink' whether MediaWiki currently thinks this is a CSS JS page Hooks may change this value to override the return value of Title::isCssOrJsPage(). 'TitleIsAlwaysKnown' whether MediaWiki currently thinks this page is known isMovable() always returns false. $title whether MediaWiki currently thinks this page is movable Hooks may change this value to override the return value of Title::isMovable(). 'TitleIsWikitextPage' whether MediaWiki currently thinks this is a wikitext page Hooks may change this value to override the return value of Title::isWikitextPage() 'TitleMove' use UploadVerification and UploadVerifyFile instead $form
checkPermissions()
Checks if userCanExecute, and if not throws a PermissionsError.
requiresWrite()
Whether this action requires the wiki not to be locked.
setParameter( $par)
Maybe do something interesting with the subpage parameter.
Special page which uses an HTMLForm to handle processing.
preText()
Add pre-text to the form.
getName()
Get the name of this Special Page.
postText()
Add post-text to the form.
getMessagePrefix()
Get message prefix for HTMLForm.
checkExecutePermissions(User $user)
Called from execute() to check if the given user can perform this action.
execute( $par)
Basic SpecialPage workflow: get a form, send it to the user; get some data back,.
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
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.
msg()
Wrapper around wfMessage that sets the current context.
string $par
The sub-page of the special page.
Parent class for all special pages.
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
checkReadOnly()
If the wiki is currently in readonly mode, throws a ReadOnlyError.
isBlocked( $bFromSlave=true)
Check if user is blocked.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
wfArrayToCgi( $array1, $array2=null, $prefix='')
This function takes two arrays as input, and returns a CGI-style string, e.g.