MediaWiki REL1_37
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.
 
 getAuthority ()
 
 getConfig ()
 
 getContext ()
 Get the base IContextSource object.
 
 getCsrfTokenSet ()
 Get a repository to obtain and match CSRF tokens.
 
 getLanguage ()
 
 getOutput ()
 
 getRequest ()
 
 getSkin ()
 
 getStats ()
 
 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)
 
 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 29 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 87 of file ImageHistoryList.php.

References getAuthority(), and ContextSource\msg().

◆ endImageHistoryList()

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

Definition at line 109 of file ImageHistoryList.php.

◆ getFile()

ImageHistoryList::getFile ( )
Returns
File

Definition at line 79 of file ImageHistoryList.php.

◆ getImagePage()

ImageHistoryList::getImagePage ( )
Returns
ImagePage

Definition at line 72 of file ImageHistoryList.php.

◆ getPreventClickjacking()

ImageHistoryList::getPreventClickjacking ( )
Returns
bool

Definition at line 333 of file ImageHistoryList.php.

◆ getThumbForLine()

ImageHistoryList::getThumbForLine (   $file)
protected
Parameters
File$file
Returns
string

Definition at line 292 of file ImageHistoryList.php.

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

Referenced by imageHistoryLine().

◆ imageHistoryLine()

◆ preventClickjacking()

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

Definition at line 326 of file ImageHistoryList.php.

References preventClickjacking().

Referenced by imageHistoryLine(), and preventClickjacking().

Member Data Documentation

◆ $current

File ImageHistoryList::$current
protected

Definition at line 50 of file ImageHistoryList.php.

◆ $imagePage

ImagePage ImageHistoryList::$imagePage
protected

Definition at line 45 of file ImageHistoryList.php.

◆ $img

File ImageHistoryList::$img
protected

Definition at line 40 of file ImageHistoryList.php.

◆ $preventClickjacking

ImageHistoryList::$preventClickjacking = false
protected

Definition at line 53 of file ImageHistoryList.php.

◆ $repo

ImageHistoryList::$repo
protected

Definition at line 52 of file ImageHistoryList.php.

◆ $showThumb

ImageHistoryList::$showThumb
protected

Definition at line 52 of file ImageHistoryList.php.

◆ $title

Title ImageHistoryList::$title
protected

Definition at line 35 of file ImageHistoryList.php.


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