MediaWiki
REL1_40
CommentItem.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\CommentFormatter
;
4
5
use
MediaWiki\Linker\LinkTarget
;
6
13
class
CommentItem
{
18
public
$comment
;
19
24
public
$selfLinkTarget
;
25
30
public
$samePage
;
31
36
public
$wikiId
;
37
41
public
function
__construct
(
string
$comment
) {
42
$this->comment =
$comment
;
43
}
44
52
public
function
selfLinkTarget
(
LinkTarget
$selfLinkTarget
) {
53
$this->
selfLinkTarget
=
$selfLinkTarget
;
54
return
$this;
55
}
56
64
public
function
samePage
(
$samePage
=
true
) {
65
$this->
samePage
=
$samePage
;
66
return
$this;
67
}
68
78
public
function
wikiId
(
$wikiId
) {
79
$this->
wikiId
=
$wikiId
;
80
return
$this;
81
}
82
}
MediaWiki\CommentFormatter\CommentItem
An object to represent one of the inputs to a batch formatting operation.
Definition
CommentItem.php:13
MediaWiki\CommentFormatter\CommentItem\$wikiId
string false null $wikiId
Definition
CommentItem.php:36
MediaWiki\CommentFormatter\CommentItem\$samePage
bool null $samePage
Definition
CommentItem.php:30
MediaWiki\CommentFormatter\CommentItem\$comment
string $comment
Definition
CommentItem.php:18
MediaWiki\CommentFormatter\CommentItem\wikiId
wikiId( $wikiId)
ID of the wiki to link to (if not the local wiki), as used by WikiMap.
Definition
CommentItem.php:78
MediaWiki\CommentFormatter\CommentItem\__construct
__construct(string $comment)
Definition
CommentItem.php:41
MediaWiki\CommentFormatter\CommentItem\samePage
samePage( $samePage=true)
Set the same-page flag.
Definition
CommentItem.php:64
MediaWiki\CommentFormatter\CommentItem\$selfLinkTarget
LinkTarget null $selfLinkTarget
Definition
CommentItem.php:24
MediaWiki\CommentFormatter\CommentItem\selfLinkTarget
selfLinkTarget(LinkTarget $selfLinkTarget)
Set the self-link target.
Definition
CommentItem.php:52
MediaWiki\Linker\LinkTarget
Definition
LinkTarget.php:26
MediaWiki\CommentFormatter
Definition
CommentBatch.php:3
includes
CommentFormatter
CommentItem.php
Generated on Thu Jun 27 2024 14:02:30 for MediaWiki by
1.10.0