Go to the documentation of this file.
38 $this->
getOutput()->showErrorPage(
'nosuchaction',
'nosuchactiontext' );
65 parent::checkCanExecute(
$user );
67 $oldimage = $this->
getRequest()->getText(
'oldimage' );
68 if ( strlen( $oldimage ) < 16
69 || strpos( $oldimage,
'/' ) !==
false
70 || strpos( $oldimage,
'\\' ) !==
false
80 if ( !$this->oldFile->exists() ) {
86 $form->setWrapperLegendMsg(
'filerevert-legend' );
87 $form->setSubmitTextMsg(
'filerevert-submit' );
88 $form->addHiddenField(
'oldimage', $this->
getRequest()->getText(
'oldimage' ) );
106 'vertical-label' =>
true,
108 'default' => $this->
msg(
'filerevert-intro',
109 $this->
getTitle()->getText(), $userDate, $userTime,
111 $this->
page->getFile()->getArchiveUrl( $this->
getRequest()->getText(
'oldimage' ) ),
117 'label-message' =>
'filerevert-comment',
118 'default' => $this->
msg(
'filerevert-defaultcomment', $siteDate, $siteTime
119 )->inContentLanguage()->text()
125 $source = $this->
page->getFile()->getArchiveVirtualUrl(
131 return $this->
page->getFile()->upload(
149 $this->
getOutput()->addWikiMsg(
'filerevert-success', $this->
getTitle()->getText(),
150 $userDate, $userTime,
158 return $this->
msg(
'filerevert', $this->
getTitle()->getText() );
getName()
Return the name of the action this object responds to.
static singleton()
Get a RepoGroup instance.
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
show()
The main action entry point.
getDescription()
Returns the description that goes below the <h1> tag.
getRequest()
Get the WebRequest being used for this instance.
Class for pages in NS_FILE.
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
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 content language as $wgContLang
Dummy class for pages not in NS_FILE.
Actions are things which can be done to pages (edit, delete, rollback, etc).
alterForm(HTMLForm $form)
Play with the HTMLForm if you need to more substantially.
onSuccess()
Do something exciting on successful processing of the form.
getFormFields()
Get an HTMLForm descriptor array.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
execute()
Execute the action in a silent fashion: do not display anything or release any errors.
getUser()
Shortcut to get the User being used for this instance.
getTitle()
Shortcut to get the Title object from the page.
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
msg()
Get a Message object with context set Parameters are the same as wfMessage()
getPageTitle()
Returns the name that goes in the <h1> page title.
getRestriction()
Get the permission required to perform this action.
getLanguage()
Shortcut to get the user Language being used for this instance.
if(PHP_SAPI !='cli') $source
onSubmit( $data)
Process the form on POST submission.
getOutput()
Get the OutputPage being used for this instance.
checkCanExecute(User $user)
Checks if the given user (identified by an object) can perform this action.
An error page which can definitely be safely rendered using the OutputPage.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Class to represent a file in the oldimage table.
getName()
Return the name of the action this object responds to.
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values my talk page