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 index.php entry point: 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 738 of file ImagePage.php.
References $wgOut, $wgUploadMaintenance, and loadFile().
ImagePage::doPurge | ( | ) |
Override handling of action=purge.
Reimplemented from Article.
Definition at line 768 of file ImagePage.php.
References loadFile(), and wfDebug().
ImagePage::followRedirect | ( | ) |
Get the Title object this page redirects to.
Reimplemented from Article.
Definition at line 167 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 281 of file ImagePage.php.
References Article::getID(), and loadFile().
ImagePage::getDisplayedFile | ( | ) |
ImagePage::getDuplicates | ( | ) |
Definition at line 202 of file ImagePage.php.
References $dupes, $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 154 of file ImagePage.php.
References loadFile(), and Title::makeTitle().
ImagePage::getUploadUrl | ( | ) |
Definition at line 540 of file ImagePage.php.
References SpecialPage::getTitleFor(), and loadFile().
Referenced by uploadLinksBox().
ImagePage::imageDupes | ( | ) | [protected] |
Definition at line 700 of file ImagePage.php.
References $dupes, $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 597 of file ImagePage.php.
References $wgOut, loadFile(), and uploadLinksBox().
Referenced by view().
ImagePage::imageLinks | ( | ) | [protected] |
ImagePage::imageRedirects | ( | ) | [protected] |
Definition at line 673 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 179 of file ImagePage.php.
References 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 255 of file ImagePage.php.
References Sanitizer::escapeId(), and wfMsgNoTrans().
Referenced by view().
ImagePage::openShowImage | ( | ) | [protected] |
Definition at line 289 of file ImagePage.php.
References $filename, $i, $options, $page, $wgContLang, $wgEnableUploads, $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(), and wfRunHooks().
Referenced by view().
ImagePage::printSharedImageText | ( | ) | [protected] |
Show a notice that the file is from a shared repository.
Definition at line 515 of file ImagePage.php.
References $msg, $repo, $wgOut, loadFile(), and wfMsgNoTrans().
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 759 of file ImagePage.php.
References loadFile().
ImagePage::setFile | ( | $ | file | ) |
Definition at line 26 of file ImagePage.php.
ImagePage::showError | ( | $ | description | ) |
ImagePage::showTOC | ( | $ | metadata | ) | [protected] |
Create the TOC.
bool | $metadata Whether or not to show the metadata link |
Definition at line 232 of file ImagePage.php.
References wfMsgHtml(), and wfRunHooks().
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 553 of file ImagePage.php.
References $wgEnableUploads, $wgOut, $wgUseExternalEditor, $wgUser, getUploadUrl(), loadFile(), UploadBase::userCanReUpload(), wfMsg(), wfMsgExt(), and wfMsgHtml().
Referenced by imageHistory().
ImagePage::view | ( | ) |
This is the default action of the index.php entry point: 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::showRedirectedFromHeader(), Article::viewRedirect(), Article::viewUpdates(), wfEmptyMsg(), wfMsg(), wfMsgNoTrans(), and wfRunHooks().
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 |