|
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) | |
Public Member Functions inherited from MediaWiki\Context\ContextSource | |
| 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 25 of file ImageHistoryList.php.
| MediaWiki\Page\ImageHistoryList::__construct | ( | $imagePage | ) |
| ImagePage | $imagePage |
Definition at line 40 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 68 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 97 of file ImageHistoryList.php.
| MediaWiki\Page\ImageHistoryList::getFile | ( | ) |
Definition at line 61 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\$img.
| MediaWiki\Page\ImageHistoryList::getImagePage | ( | ) |
Definition at line 54 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\$imagePage.
| MediaWiki\Page\ImageHistoryList::getPreventClickjacking | ( | ) |
Definition at line 327 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\$preventClickjacking.
|
protected |
| File | $file | |
| bool | $iscur |
Definition at line 277 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 108 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 312 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 320 of file ImageHistoryList.php.
References MediaWiki\Page\ImageHistoryList\preventClickjacking().
Referenced by MediaWiki\Page\ImageHistoryList\imageHistoryLine().
|
protected |
Definition at line 31 of file ImageHistoryList.php.
|
protected |
Definition at line 30 of file ImageHistoryList.php.
Referenced by MediaWiki\Page\ImageHistoryList\__construct(), and MediaWiki\Page\ImageHistoryList\getImagePage().
|
protected |
Definition at line 29 of file ImageHistoryList.php.
Referenced by MediaWiki\Page\ImageHistoryList\getFile(), and MediaWiki\Page\ImageHistoryList\imageHistoryLine().
|
protected |
Definition at line 35 of file ImageHistoryList.php.
Referenced by MediaWiki\Page\ImageHistoryList\getPreventClickjacking().
|
protected |
Definition at line 33 of file ImageHistoryList.php.
|
protected |
Definition at line 28 of file ImageHistoryList.php.