|
MediaWiki master
|
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 () | |
Generate a set of tools for a revision.
Definition at line 19 of file PagerTools.php.
| 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.
| RevisionRecord | $revRecord | The revision to generate tools for. |
| RevisionRecord | null | $previousRevRecord | The previous revision (if any). Optional. Used to produce undo links. |
| bool | $showRollbackLink | Whether 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 | $hookRunner | Unused since 1.47 |
| PageIdentity | $title | Unused since 1.47 |
| IContextSource | $context | |
| LinkRenderer | $linkRenderer | Unused since 1.47 |
Definition at line 36 of file PagerTools.php.
References MediaWiki\MediaWikiServices\getInstance(), and wfDeprecated().
| MediaWiki\Specials\Pager\PagerTools::shouldPreventClickjacking | ( | ) |
Definition at line 54 of file PagerTools.php.
| MediaWiki\Specials\Pager\PagerTools::toHTML | ( | ) |
Definition at line 58 of file PagerTools.php.