MediaWiki REL1_28
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)
 
- Public Member Functions inherited from 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.
 
 getConfig ()
 Get the Config object.
 
 getContext ()
 Get the base IContextSource object.
 
 getLanguage ()
 Get the Language object.
 
 getOutput ()
 Get the OutputPage object.
 
 getRequest ()
 Get the WebRequest object.
 
 getSkin ()
 Get the Skin object.
 
 getStats ()
 Get the Stats object.
 
 getTiming ()
 Get the Timing object.
 
 getTitle ()
 Get the Title object.
 
 getUser ()
 Get the User object.
 
 getWikiPage ()
 Get the WikiPage object.
 
 msg ()
 Get a Message object with context set Parameters are the same as wfMessage()
 
 setContext (IContextSource $context)
 Set the IContextSource object.
 

Protected Member Functions

 getThumbForLine ( $file)
 
 preventClickjacking ( $enable=true)
 

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 26 of file ImageHistoryList.php.

Constructor & Destructor Documentation

◆ __construct()

ImageHistoryList::__construct (   $imagePage)

Member Function Documentation

◆ beginImageHistoryList()

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

Definition at line 82 of file ImageHistoryList.php.

References Xml\element(), ContextSource\getUser(), ContextSource\msg(), Xml\openElement(), and text.

◆ endImageHistoryList()

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

Definition at line 104 of file ImageHistoryList.php.

◆ getFile()

ImageHistoryList::getFile ( )
Returns
File

Definition at line 74 of file ImageHistoryList.php.

References $img.

◆ getImagePage()

ImageHistoryList::getImagePage ( )
Returns
ImagePage

Definition at line 67 of file ImageHistoryList.php.

References $imagePage.

◆ getPreventClickjacking()

ImageHistoryList::getPreventClickjacking ( )
Returns
bool

Definition at line 323 of file ImageHistoryList.php.

References $preventClickjacking.

◆ getThumbForLine()

ImageHistoryList::getThumbForLine (   $file)
protected

◆ imageHistoryLine()

◆ preventClickjacking()

ImageHistoryList::preventClickjacking (   $enable = true)
protected
Parameters
bool$enable

Definition at line 316 of file ImageHistoryList.php.

References preventClickjacking().

Referenced by imageHistoryLine(), and preventClickjacking().

Member Data Documentation

◆ $current

File ImageHistoryList::$current
protected

Definition at line 46 of file ImageHistoryList.php.

◆ $imagePage

ImagePage ImageHistoryList::$imagePage
protected

Definition at line 41 of file ImageHistoryList.php.

Referenced by __construct(), and getImagePage().

◆ $img

File ImageHistoryList::$img
protected

Definition at line 36 of file ImageHistoryList.php.

Referenced by getFile(), and imageHistoryLine().

◆ $preventClickjacking

ImageHistoryList::$preventClickjacking = false
protected

Definition at line 49 of file ImageHistoryList.php.

Referenced by getPreventClickjacking().

◆ $repo

ImageHistoryList::$repo
protected

Definition at line 48 of file ImageHistoryList.php.

◆ $showThumb

ImageHistoryList::$showThumb
protected

Definition at line 48 of file ImageHistoryList.php.

◆ $title

Title ImageHistoryList::$title
protected

Definition at line 31 of file ImageHistoryList.php.


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