MediaWiki REL1_41
|
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 MediaWiki\CommentFormatter\CommentItem\$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 MediaWiki\CommentFormatter\CommentItem\$samePage, and MediaWiki\CommentFormatter\CommentItem\samePage().
Referenced by MediaWiki\CommentFormatter\CommentItem\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 MediaWiki\CommentFormatter\CommentItem\$selfLinkTarget, and MediaWiki\CommentFormatter\CommentItem\selfLinkTarget().
Referenced by MediaWiki\CommentFormatter\CommentItem\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 MediaWiki\CommentFormatter\CommentItem\$wikiId, and MediaWiki\CommentFormatter\CommentItem\wikiId().
Referenced by MediaWiki\CommentFormatter\CommentItem\wikiId().
string MediaWiki\CommentFormatter\CommentItem::$comment |
Definition at line 18 of file CommentItem.php.
Referenced by MediaWiki\CommentFormatter\CommentItem\__construct().
bool null MediaWiki\CommentFormatter\CommentItem::$samePage |
Definition at line 30 of file CommentItem.php.
Referenced by MediaWiki\CommentFormatter\CommentItem\samePage().
LinkTarget null MediaWiki\CommentFormatter\CommentItem::$selfLinkTarget |
Definition at line 24 of file CommentItem.php.
Referenced by MediaWiki\CommentFormatter\CommentItem\selfLinkTarget().
string false null MediaWiki\CommentFormatter\CommentItem::$wikiId |
Definition at line 36 of file CommentItem.php.
Referenced by MediaWiki\CommentFormatter\CommentItem\wikiId().