|
MediaWiki master
|
An object to represent one of the inputs to a batch formatting operation. More...

Public Member Functions | |
| __construct (string $comment) | |
| samePage ( $samePage=true) | |
| Set the same-page flag. | |
| selfLinkTarget (LinkTarget $selfLinkTarget) | |
| Set the self-link target. | |
| wikiId ( $wikiId) | |
| ID of the wiki to link to (if not the local wiki), as used by WikiMap. | |
Public Attributes | |
| string | $comment |
| bool null | $samePage |
| LinkTarget null | $selfLinkTarget |
| string false null | $wikiId |
An object to represent one of the inputs to a batch formatting operation.
Definition at line 13 of file CommentItem.php.
| MediaWiki\CommentFormatter\CommentItem::__construct | ( | string | $comment | ) |
| string | $comment | The comment to format |
Definition at line 41 of file CommentItem.php.
References $comment.
| MediaWiki\CommentFormatter\CommentItem::samePage | ( | $samePage = true | ) |
Set the same-page flag.
| bool | $samePage | If true, self links are rendered with a fragment- only URL. Formerly $local. |
Definition at line 64 of file CommentItem.php.
References $samePage, and samePage().
Referenced by samePage().
| MediaWiki\CommentFormatter\CommentItem::selfLinkTarget | ( | LinkTarget | $selfLinkTarget | ) |
Set the self-link target.
| LinkTarget | $selfLinkTarget | The title used for fragment-only and section links, formerly $title. |
Definition at line 52 of file CommentItem.php.
References $selfLinkTarget, and selfLinkTarget().
Referenced by selfLinkTarget().
| MediaWiki\CommentFormatter\CommentItem::wikiId | ( | $wikiId | ) |
ID of the wiki to link to (if not the local wiki), as used by WikiMap.
This is used to render comments which are loaded from a foreign wiki. This only affects links which are syntactically internal – it has no effect on interwiki links.
| string | false | null | $wikiId |
Definition at line 78 of file CommentItem.php.
References $wikiId, and wikiId().
Referenced by wikiId().
| string MediaWiki\CommentFormatter\CommentItem::$comment |
| bool null MediaWiki\CommentFormatter\CommentItem::$samePage |
| LinkTarget null MediaWiki\CommentFormatter\CommentItem::$selfLinkTarget |
| string false null MediaWiki\CommentFormatter\CommentItem::$wikiId |