MediaWiki master
MediaWiki\Specials\Pager\PagerTools Class Reference

Generate a set of tools for a revision. More...

Public Member Functions

 __construct (RevisionRecord $revRecord, ?RevisionRecord $previousRevRecord, bool $showRollbackLink, HookRunner $hookRunner, PageIdentity $title, IContextSource $context, LinkRenderer $linkRenderer,)
 Generate a set of tools for a revision.
 
 shouldPreventClickjacking ()
 
 toHTML ()
 

Detailed Description

Generate a set of tools for a revision.

Deprecated
since 1.47, use ChangeToolsFactory instead
Since
1.40

Definition at line 19 of file PagerTools.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Specials\Pager\PagerTools::__construct ( RevisionRecord $revRecord,
?RevisionRecord $previousRevRecord,
bool $showRollbackLink,
HookRunner $hookRunner,
PageIdentity $title,
IContextSource $context,
LinkRenderer $linkRenderer )

Generate a set of tools for a revision.

Will perform permission checks where necessary.

Parameters
RevisionRecord$revRecordThe revision to generate tools for.
RevisionRecord | null$previousRevRecordThe previous revision (if any). Optional. Used to produce undo links.
bool$showRollbackLinkWhether to show the rollback link. Only set to true if the revision is the latest revision of its page and it has a parent. FIXME why don't we do these checks ourselves?
HookRunner$hookRunnerUnused since 1.47
PageIdentity$titleUnused since 1.47
IContextSource$context
LinkRenderer$linkRendererUnused since 1.47

Definition at line 36 of file PagerTools.php.

References MediaWiki\MediaWikiServices\getInstance(), and wfDeprecated().

Member Function Documentation

◆ shouldPreventClickjacking()

MediaWiki\Specials\Pager\PagerTools::shouldPreventClickjacking ( )

Definition at line 54 of file PagerTools.php.

◆ toHTML()

MediaWiki\Specials\Pager\PagerTools::toHTML ( )

Definition at line 58 of file PagerTools.php.


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