MediaWiki  master
ImageHistoryList Class Reference

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

Inheritance diagram for ImageHistoryList:
Collaboration diagram for ImageHistoryList:

Public Member Functions

 __construct ( $imagePage)
 
 beginImageHistoryList ( $navLinks='')
 
 endImageHistoryList ( $navLinks='')
 
 getFile ()
 
 getImagePage ()
 
 getPreventClickjacking ()
 
 imageHistoryLine ( $iscur, $file, $formattedComment)
 
- Public Member Functions inherited from ContextSource
 canUseWikiPage ()
 Check whether a WikiPage object can be get with getWikiPage(). More...
 
 exportSession ()
 Export the resolved user IP, HTTP headers, user ID, and session ID. More...
 
 getActionName ()
 Get the action name for the current web request. More...
 
 getAuthority ()
 
 getConfig ()
 
 getContext ()
 Get the base IContextSource object. More...
 
 getCsrfTokenSet ()
 Get a repository to obtain and match CSRF tokens. More...
 
 getLanguage ()
 
 getOutput ()
 
 getRequest ()
 
 getSkin ()
 
 getStats ()
 
 getTiming ()
 
 getTitle ()
 
 getUser ()
 
 getWikiPage ()
 Get the WikiPage object. More...
 
 msg ( $key,... $params)
 Get a Message object with context set Parameters are the same as wfMessage() More...
 
 setContext (IContextSource $context)
 

Public Attributes

 $showThumb
 

Protected Member Functions

 getThumbForLine ( $file, $iscur)
 
 preventClickjacking ( $enable=true)
 
 setPreventClickjacking (bool $enable)
 

Protected Attributes

File $current
 
ImagePage $imagePage
 
File $img
 
 $preventClickjacking = false
 
 $repo
 
Title $title
 

Detailed Description

Builds the image revision log shown on image pages.

Definition at line 30 of file ImageHistoryList.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ beginImageHistoryList()

ImageHistoryList::beginImageHistoryList (   $navLinks = '')
Parameters
string$navLinks
Returns
string

Definition at line 88 of file ImageHistoryList.php.

References Html\element(), ContextSource\getAuthority(), ContextSource\getOutput(), ContextSource\msg(), Html\openElement(), and Html\rawElement().

◆ endImageHistoryList()

ImageHistoryList::endImageHistoryList (   $navLinks = '')
Parameters
string$navLinks
Returns
string

Definition at line 123 of file ImageHistoryList.php.

References Html\closeElement().

◆ getFile()

ImageHistoryList::getFile ( )
Returns
File

Definition at line 80 of file ImageHistoryList.php.

References $img.

◆ getImagePage()

ImageHistoryList::getImagePage ( )
Returns
ImagePage

Definition at line 73 of file ImageHistoryList.php.

References $imagePage.

◆ getPreventClickjacking()

ImageHistoryList::getPreventClickjacking ( )
Returns
bool

Definition at line 356 of file ImageHistoryList.php.

References $preventClickjacking.

◆ getThumbForLine()

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

Definition at line 306 of file ImageHistoryList.php.

References $file, $lang, File\DELETED_FILE, ContextSource\getLanguage(), ContextSource\getUser(), ContextSource\msg(), and wfTimestamp().

Referenced by imageHistoryLine().

◆ imageHistoryLine()

◆ preventClickjacking()

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

Definition at line 341 of file ImageHistoryList.php.

Referenced by setPreventClickjacking().

◆ setPreventClickjacking()

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

Definition at line 349 of file ImageHistoryList.php.

References preventClickjacking().

Referenced by imageHistoryLine().

Member Data Documentation

◆ $current

File ImageHistoryList::$current
protected

Definition at line 51 of file ImageHistoryList.php.

◆ $imagePage

ImagePage ImageHistoryList::$imagePage
protected

Definition at line 46 of file ImageHistoryList.php.

Referenced by __construct(), and getImagePage().

◆ $img

File ImageHistoryList::$img
protected

Definition at line 41 of file ImageHistoryList.php.

Referenced by getFile(), and imageHistoryLine().

◆ $preventClickjacking

ImageHistoryList::$preventClickjacking = false
protected

Definition at line 54 of file ImageHistoryList.php.

Referenced by getPreventClickjacking().

◆ $repo

ImageHistoryList::$repo
protected

Definition at line 53 of file ImageHistoryList.php.

◆ $showThumb

ImageHistoryList::$showThumb

Definition at line 53 of file ImageHistoryList.php.

◆ $title

Title ImageHistoryList::$title
protected

Definition at line 36 of file ImageHistoryList.php.


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