MediaWiki master
ImageHistoryList Class Reference

Builds the image revision log shown on image pages. More...

Inherits MediaWiki\Context\ContextSource.

Collaboration diagram for ImageHistoryList:

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
 
 $preventClickjacking = false
 
 $repo
 
 $showThumb
 
Title $title
 

Detailed Description

Builds the image revision log shown on image pages.

Definition at line 35 of file ImageHistoryList.php.

Constructor & Destructor Documentation

◆ __construct()

ImageHistoryList::__construct (   $imagePage)

Member Function Documentation

◆ beginImageHistoryList()

ImageHistoryList::beginImageHistoryList ( )

◆ endImageHistoryList()

ImageHistoryList::endImageHistoryList ( )
Returns
string

Definition at line 121 of file ImageHistoryList.php.

◆ getFile()

ImageHistoryList::getFile ( )
Returns
File

Definition at line 85 of file ImageHistoryList.php.

◆ getImagePage()

ImageHistoryList::getImagePage ( )
Returns
ImagePage

Definition at line 78 of file ImageHistoryList.php.

◆ getPreventClickjacking()

ImageHistoryList::getPreventClickjacking ( )
Returns
bool

Definition at line 351 of file ImageHistoryList.php.

◆ getThumbForLine()

ImageHistoryList::getThumbForLine (   $file,
  $iscur 
)
protected
Parameters
File$file
bool$iscur
Returns
string|null

Definition at line 301 of file ImageHistoryList.php.

References MediaWiki\Context\ContextSource\getLanguage(), getUser(), MediaWiki\Context\ContextSource\msg(), and wfTimestamp().

Referenced by imageHistoryLine().

◆ imageHistoryLine()

ImageHistoryList::imageHistoryLine (   $iscur,
  $file,
  $formattedComment 
)
Access: internal
Parameters
bool$iscur
File$file
string$formattedComment
Returns
string

Definition at line 132 of file ImageHistoryList.php.

References getAuthority(), MediaWiki\Context\ContextSource\getLanguage(), File\getName(), getThumbForLine(), getUser(), MediaWiki\Context\ContextSource\msg(), setPreventClickjacking(), and wfTimestamp().

◆ preventClickjacking()

ImageHistoryList::preventClickjacking (   $enable = true)
protected
Parameters
bool$enable
Deprecated:
since 1.38, use ::setPreventClickjacking() instead

Definition at line 336 of file ImageHistoryList.php.

References preventClickjacking().

Referenced by preventClickjacking(), and setPreventClickjacking().

◆ setPreventClickjacking()

ImageHistoryList::setPreventClickjacking ( bool  $enable)
protected
Parameters
bool$enable
Since
1.38

Definition at line 344 of file ImageHistoryList.php.

References preventClickjacking().

Referenced by imageHistoryLine().

Member Data Documentation

◆ $current

File ImageHistoryList::$current
protected

Definition at line 56 of file ImageHistoryList.php.

◆ $imagePage

ImagePage ImageHistoryList::$imagePage
protected

Definition at line 51 of file ImageHistoryList.php.

◆ $img

File ImageHistoryList::$img
protected

Definition at line 46 of file ImageHistoryList.php.

◆ $preventClickjacking

ImageHistoryList::$preventClickjacking = false
protected

Definition at line 59 of file ImageHistoryList.php.

◆ $repo

ImageHistoryList::$repo
protected

Definition at line 58 of file ImageHistoryList.php.

◆ $showThumb

ImageHistoryList::$showThumb
protected

Definition at line 58 of file ImageHistoryList.php.

◆ $title

Title ImageHistoryList::$title
protected

Definition at line 41 of file ImageHistoryList.php.


The documentation for this class was generated from the following file: