|
MediaWiki 1.43.1
|
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 35 of file ImageHistoryList.php.
| ImageHistoryList::__construct | ( | $imagePage | ) |
| ImagePage | $imagePage |
Definition at line 50 of file ImageHistoryList.php.
References Article\getContext(), ImagePage\getDisplayedFile(), Article\getPage(), Article\getTitle(), and MediaWiki\Context\ContextSource\setContext().
| ImageHistoryList::beginImageHistoryList | ( | ) |
Definition at line 78 of file ImageHistoryList.php.
References MediaWiki\Context\ContextSource\getAuthority(), MediaWiki\Context\ContextSource\getOutput(), and MediaWiki\Context\ContextSource\msg().
| ImageHistoryList::endImageHistoryList | ( | ) |
Definition at line 107 of file ImageHistoryList.php.
| ImageHistoryList::getFile | ( | ) |
Definition at line 71 of file ImageHistoryList.php.
| ImageHistoryList::getImagePage | ( | ) |
Definition at line 64 of file ImageHistoryList.php.
| ImageHistoryList::getPreventClickjacking | ( | ) |
Definition at line 337 of file ImageHistoryList.php.
|
protected |
| File | $file | |
| bool | $iscur |
Definition at line 287 of file ImageHistoryList.php.
References MediaWiki\Context\ContextSource\getLanguage(), MediaWiki\Context\ContextSource\getUser(), MediaWiki\Context\ContextSource\msg(), and wfTimestamp().
Referenced by imageHistoryLine().
| ImageHistoryList::imageHistoryLine | ( | $iscur, | |
| $file, | |||
| $formattedComment ) |
| bool | $iscur | |
| File | $file | |
| string | $formattedComment |
Definition at line 118 of file ImageHistoryList.php.
References $url, MediaWiki\Context\ContextSource\getAuthority(), MediaWiki\Context\ContextSource\getLanguage(), File\getName(), getThumbForLine(), MediaWiki\Context\ContextSource\getUser(), MediaWiki\Context\ContextSource\msg(), setPreventClickjacking(), and wfTimestamp().
|
protected |
| bool | $enable |
Definition at line 322 of file ImageHistoryList.php.
References preventClickjacking().
Referenced by preventClickjacking(), and setPreventClickjacking().
|
protected |
| bool | $enable |
Definition at line 330 of file ImageHistoryList.php.
References preventClickjacking().
Referenced by imageHistoryLine().
|
protected |
Definition at line 41 of file ImageHistoryList.php.
|
protected |
Definition at line 40 of file ImageHistoryList.php.
|
protected |
Definition at line 39 of file ImageHistoryList.php.
|
protected |
Definition at line 45 of file ImageHistoryList.php.
|
protected |
Definition at line 43 of file ImageHistoryList.php.
|
protected |
Definition at line 38 of file ImageHistoryList.php.