MediaWiki master
|
Builds the image revision log shown on image pages. More...
Inherits MediaWiki\Context\ContextSource.
Public Member Functions | |
__construct ( $imagePage) | |
beginImageHistoryList () | |
endImageHistoryList () | |
getFile () | |
getImagePage () | |
getPreventClickjacking () | |
imageHistoryLine ( $iscur, $file, $formattedComment) | |
![]() | |
canUseWikiPage () | |
Check whether a WikiPage object can be get with getWikiPage(). | |
exportSession () | |
Export the resolved user IP, HTTP headers, user ID, and session ID. | |
getActionName () | |
Get the action name for the current web request. | |
getAuthority () | |
getConfig () | |
getContext () | |
Get the base IContextSource object. | |
getCsrfTokenSet () | |
Get a repository to obtain and match CSRF tokens. | |
getLanguage () | |
getLanguageCode () | |
getOutput () | |
getRequest () | |
getSkin () | |
getTiming () | |
getTitle () | |
getUser () | |
getWikiPage () | |
Get the WikiPage object. | |
msg ( $key,... $params) | |
Get a Message object with context set Parameters are the same as wfMessage() | |
setContext (IContextSource $context) | |
Protected Member Functions | |
getThumbForLine ( $file, $iscur) | |
preventClickjacking ( $enable=true) | |
setPreventClickjacking (bool $enable) | |
Protected Attributes | |
File | $current |
ImagePage | $imagePage |
File | $img |
bool | $preventClickjacking = false |
bool | $showThumb |
Title | $title |
Builds the image revision log shown on image pages.
Definition at line 38 of file ImageHistoryList.php.
MediaWiki\Page\ImageHistoryList::__construct | ( | $imagePage | ) |
ImagePage | $imagePage |
Definition at line 53 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\$imagePage, MediaWiki\Page\Article\getContext(), MediaWiki\Page\ImagePage\getDisplayedFile(), MediaWiki\Page\Article\getPage(), MediaWiki\Page\Article\getTitle(), MediaWiki\Context\ContextSource\setContext(), and MediaWiki\MainConfigNames\ShowArchiveThumbnails.
MediaWiki\Page\ImageHistoryList::beginImageHistoryList | ( | ) |
Definition at line 81 of file ImageHistoryList.php.
References MediaWiki\Html\element(), MediaWiki\Context\ContextSource\getAuthority(), MediaWiki\Context\ContextSource\getOutput(), and MediaWiki\Context\ContextSource\msg().
MediaWiki\Page\ImageHistoryList::endImageHistoryList | ( | ) |
Definition at line 110 of file ImageHistoryList.php.
MediaWiki\Page\ImageHistoryList::getFile | ( | ) |
Definition at line 74 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\$img.
MediaWiki\Page\ImageHistoryList::getImagePage | ( | ) |
Definition at line 67 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\$imagePage.
MediaWiki\Page\ImageHistoryList::getPreventClickjacking | ( | ) |
Definition at line 340 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\$preventClickjacking.
|
protected |
File | $file | |
bool | $iscur |
Definition at line 290 of file ImageHistoryList.php.
References MediaWiki\FileRepo\File\File\DELETED_FILE, MediaWiki\Context\ContextSource\getLanguage(), MediaWiki\Context\ContextSource\getUser(), MediaWiki\Context\ContextSource\msg(), and wfTimestamp().
Referenced by MediaWiki\Page\ImageHistoryList\imageHistoryLine().
MediaWiki\Page\ImageHistoryList::imageHistoryLine | ( | $iscur, | |
$file, | |||
$formattedComment ) |
bool | $iscur | |
File | $file | |
string | $formattedComment |
Definition at line 121 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\$img, $url, MediaWiki\FileRepo\File\File\DELETED_COMMENT, MediaWiki\FileRepo\File\File\DELETED_FILE, MediaWiki\FileRepo\File\File\DELETED_RESTRICTED, MediaWiki\Html\element(), MediaWiki\FileRepo\File\File\FOR_THIS_USER, MediaWiki\Context\ContextSource\getAuthority(), MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Context\ContextSource\getLanguage(), MediaWiki\FileRepo\File\File\getName(), MediaWiki\Page\ImageHistoryList\getThumbForLine(), MediaWiki\SpecialPage\SpecialPage\getTitleFor(), MediaWiki\Context\ContextSource\getUser(), MediaWiki\Context\ContextSource\msg(), MediaWiki\Page\ImageHistoryList\setPreventClickjacking(), and wfTimestamp().
|
protected |
bool | $enable |
Definition at line 325 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\preventClickjacking().
Referenced by MediaWiki\Page\ImageHistoryList\preventClickjacking(), and MediaWiki\Page\ImageHistoryList\setPreventClickjacking().
|
protected |
bool | $enable |
Definition at line 333 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\preventClickjacking().
Referenced by MediaWiki\Page\ImageHistoryList\imageHistoryLine().
|
protected |
Definition at line 44 of file ImageHistoryList.php.
|
protected |
Definition at line 43 of file ImageHistoryList.php.
Referenced by MediaWiki\Page\ImageHistoryList\__construct(), and MediaWiki\Page\ImageHistoryList\getImagePage().
|
protected |
Definition at line 42 of file ImageHistoryList.php.
Referenced by MediaWiki\Page\ImageHistoryList\getFile(), and MediaWiki\Page\ImageHistoryList\imageHistoryLine().
|
protected |
Definition at line 48 of file ImageHistoryList.php.
Referenced by MediaWiki\Page\ImageHistoryList\getPreventClickjacking().
|
protected |
Definition at line 46 of file ImageHistoryList.php.
|
protected |
Definition at line 41 of file ImageHistoryList.php.