Inherits Article.
Public Member Functions | |
__construct ($title) | |
setFile ($file) | |
render () | |
Handler for action=render Include body text only; none of the image extras. | |
view () | |
This is the default action of the script: just view the page of the given title. | |
getRedirectTarget () | |
If this page is a redirect, get its target. | |
followRedirect () | |
Get the Title object this page redirects to. | |
isRedirect ($text=false) | |
Tests if the article text represents a redirect. | |
isLocal () | |
getFile () | |
getDisplayedFile () | |
getDuplicates () | |
getContent () | |
Overloading Article's getContent method. | |
getUploadUrl () | |
delete () | |
Delete the file, or an earlier version of it. | |
revert () | |
Revert the file to an earlier version. | |
doPurge () | |
Override handling of action=purge. | |
showError ($description) | |
Display an error with a wikitext description. | |
Public Attributes | |
$img | |
$displayImg | |
$repo | |
$fileLoaded | |
$mExtraDescription = false | |
$dupes | |
Protected Member Functions | |
loadFile () | |
showTOC ($metadata) | |
Create the TOC. | |
makeMetadataTable ($metadata) | |
Make a table with metadata to be shown in the output page. | |
openShowImage () | |
printSharedImageText () | |
Show a notice that the file is from a shared repository. | |
uploadLinksBox () | |
Print out the various links at the bottom of the image page, e.g. | |
closeShowImage () | |
imageHistory () | |
If the page we've just displayed is in the "Image" namespace, we follow it with an upload history of the image and its usage. | |
imageLinks () | |
imageRedirects () | |
imageDupes () |
Definition at line 11 of file ImagePage.php.
ImagePage::__construct | ( | $ | title | ) |
ImagePage::closeShowImage | ( | ) | [protected] |
ImagePage::delete | ( | ) |
Delete the file, or an earlier version of it.
Reimplemented from Article.
Definition at line 668 of file ImagePage.php.
References loadFile().
ImagePage::doPurge | ( | ) |
Override handling of action=purge.
Reimplemented from Article.
Definition at line 691 of file ImagePage.php.
References loadFile(), and wfDebug().
ImagePage::followRedirect | ( | ) |
Get the Title object this page redirects to.
Reimplemented from Article.
Definition at line 159 of file ImagePage.php.
References loadFile(), and Title::makeTitle().
ImagePage::getContent | ( | ) |
Overloading Article's getContent method.
Omit noarticletext if sharedupload; text will be fetched from the shared upload server if possible.
Reimplemented from Article.
Definition at line 268 of file ImagePage.php.
References Article::getID(), and loadFile().
ImagePage::getDisplayedFile | ( | ) |
ImagePage::getDuplicates | ( | ) |
Definition at line 194 of file ImagePage.php.
References $dupes, $file, $key, $self, $size, loadFile(), and RepoGroup::singleton().
Referenced by imageDupes().
ImagePage::getFile | ( | ) |
ImagePage::getRedirectTarget | ( | ) |
If this page is a redirect, get its target.
The target will be fetched from the redirect table if possible. If this page doesn't have an entry there, call insertRedirect()
Reimplemented from Article.
Definition at line 146 of file ImagePage.php.
References loadFile(), and Title::makeTitle().
ImagePage::getUploadUrl | ( | ) |
Definition at line 506 of file ImagePage.php.
References SpecialPage::getTitleFor(), and loadFile().
Referenced by uploadLinksBox().
ImagePage::imageDupes | ( | ) | [protected] |
Definition at line 636 of file ImagePage.php.
References $dupes, $file, $wgLang, $wgOut, $wgUser, getDuplicates(), loadFile(), and wfMsg().
Referenced by view().
ImagePage::imageHistory | ( | ) | [protected] |
If the page we've just displayed is in the "Image" namespace, we follow it with an upload history of the image and its usage.
Definition at line 546 of file ImagePage.php.
References $wgOut, $wgUseExternalEditor, loadFile(), and uploadLinksBox().
Referenced by view().
ImagePage::imageLinks | ( | ) | [protected] |
ImagePage::imageRedirects | ( | ) | [protected] |
Definition at line 615 of file ImagePage.php.
References $title, $wgLang, $wgOut, $wgUser, and Article::getTitle().
Referenced by view().
ImagePage::isLocal | ( | ) |
ImagePage::isRedirect | ( | $ | text = false |
) |
Tests if the article text represents a redirect.
$text | String: FIXME |
Reimplemented from Article.
Definition at line 171 of file ImagePage.php.
References $text, and loadFile().
ImagePage::loadFile | ( | ) | [protected] |
Definition at line 32 of file ImagePage.php.
References wfFindFile(), wfLocalFile(), and wfRunHooks().
Referenced by delete(), doPurge(), followRedirect(), getContent(), getDisplayedFile(), getDuplicates(), getFile(), getRedirectTarget(), getUploadUrl(), imageDupes(), imageHistory(), isLocal(), isRedirect(), openShowImage(), printSharedImageText(), revert(), uploadLinksBox(), and view().
ImagePage::makeMetadataTable | ( | $ | metadata | ) | [protected] |
Make a table with metadata to be shown in the output page.
FIXME: bad interface, see note on MediaHandler::formatMetadata().
array | $exif The array containing the EXIF data |
Definition at line 243 of file ImagePage.php.
References $type, Sanitizer::escapeId(), and wfMsg().
Referenced by view().
ImagePage::openShowImage | ( | ) | [protected] |
Definition at line 276 of file ImagePage.php.
References $count, $filename, $i, $options, $page, $title, $wgContLang, $wgImageLimits, $wgLang, $wgOut, $wgRequest, $wgScript, $wgUser, Xml::closeElement(), User::getDefaultOption(), Article::getTitle(), SpecialPage::getTitleFor(), Xml::hidden(), loadFile(), Xml::openElement(), Xml::option(), printSharedImageText(), Xml::submitButton(), Xml::tags(), wfEscapeWikiText(), wfMsg(), wfMsgExt(), wfMsgHtml(), wfMsgNoTrans(), wfMsgWikiHtml(), and wfRunHooks().
Referenced by view().
ImagePage::printSharedImageText | ( | ) | [protected] |
Show a notice that the file is from a shared repository.
Definition at line 479 of file ImagePage.php.
References $msg, $s, $wgOut, $wgUser, loadFile(), wfMsg(), wfMsgExt(), and wfMsgWikiHtml().
Referenced by openShowImage().
ImagePage::render | ( | ) |
Handler for action=render Include body text only; none of the image extras.
Reimplemented from Article.
Definition at line 56 of file ImagePage.php.
ImagePage::revert | ( | ) |
Revert the file to an earlier version.
Reimplemented from Article.
Definition at line 682 of file ImagePage.php.
References loadFile().
ImagePage::setFile | ( | $ | file | ) |
ImagePage::showError | ( | $ | description | ) |
ImagePage::showTOC | ( | $ | metadata | ) | [protected] |
Create the TOC.
bool | $metadata Whether or not to show the metadata link |
Definition at line 224 of file ImagePage.php.
References $wgLang, and wfMsgHtml().
ImagePage::uploadLinksBox | ( | ) | [protected] |
Print out the various links at the bottom of the image page, e.g.
reupload, external editing (and instructions link) etc.
Definition at line 516 of file ImagePage.php.
References $wgOut, $wgUser, getUploadUrl(), loadFile(), UploadForm::userCanReUpload(), wfMsg(), wfMsgExt(), and wfMsgHtml().
Referenced by imageHistory().
ImagePage::view | ( | ) |
This is the default action of the script: just view the page of the given title.
Reimplemented from Article.
Definition at line 62 of file ImagePage.php.
References $expand, $wgOut, $wgRequest, $wgShowEXIF, $wgStylePath, $wgStyleVersion, $wgUser, closeShowImage(), Xml::element(), Xml::escapeJsString(), Article::getID(), imageDupes(), imageHistory(), imageLinks(), imageRedirects(), loadFile(), makeMetadataTable(), Title::makeTitle(), openShowImage(), Article::viewRedirect(), Article::viewUpdates(), wfEmptyMsg(), wfMsg(), and wfMsgNoTrans().
Referenced by render().
ImagePage::$displayImg |
Definition at line 14 of file ImagePage.php.
ImagePage::$dupes |
ImagePage::$fileLoaded |
Definition at line 16 of file ImagePage.php.
ImagePage::$img |
Definition at line 13 of file ImagePage.php.
ImagePage::$mExtraDescription = false |
Definition at line 17 of file ImagePage.php.
ImagePage::$repo |
Definition at line 15 of file ImagePage.php.