MediaWiki REL1_40
|
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 () | |
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 performs 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 33 of file PagerTools.php.
References $title, 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().
PagerTools::shouldPreventClickjacking | ( | ) |
Definition at line 93 of file PagerTools.php.
PagerTools::toHTML | ( | ) |
Definition at line 97 of file PagerTools.php.