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 () | |
MediaWiki\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 | |
PageIdentity | $title | The page to generate tools for. It is the caller's responsibility to ensure that the page is already in the link cache. |
IContextSource | $context | |
LinkRenderer | $linkRenderer |
Definition at line 38 of file PagerTools.php.
References MediaWiki\Context\IContextSource\getAuthority(), MediaWiki\Revision\RevisionRecord\getId(), MediaWiki\Revision\RevisionRecord\getUser(), MediaWiki\Revision\RevisionRecord\isDeleted(), MediaWiki\Linker\LinkRenderer\makeKnownLink(), MessageLocalizer\msg(), and MediaWiki\HookContainer\HookRunner\onHistoryTools().
MediaWiki\Pager\PagerTools::shouldPreventClickjacking | ( | ) |
Definition at line 98 of file PagerTools.php.
MediaWiki\Pager\PagerTools::toHTML | ( | ) |
Definition at line 102 of file PagerTools.php.