Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4071051
DatabaseCommentItem.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
DatabaseCommentItem.php
View Options
<?php
namespace
MediaWiki\Extension\DiscussionTools\ThreadItem
;
use
DateTimeImmutable
;
use
MediaWiki\Page\ProperPageIdentity
;
use
MediaWiki\Revision\RevisionRecord
;
class
DatabaseCommentItem
extends
DatabaseThreadItem
implements
CommentItem
{
use
CommentItemTrait
{
getHeading
as
protected
traitGetHeading
;
getSubscribableHeading
as
protected
traitGetSubscribableHeading
;
}
private
string
$timestamp
;
private
string
$author
;
/**
* @param ProperPageIdentity $page
* @param RevisionRecord $rev
* @param string $name
* @param string $id
* @param DatabaseThreadItem|null $parent
* @param bool|string $transcludedFrom
* @param int $level
* @param string $timestamp
* @param string $author
*/
public
function
__construct
(
ProperPageIdentity
$page
,
RevisionRecord
$rev
,
string
$name
,
string
$id
,
?
DatabaseThreadItem
$parent
,
$transcludedFrom
,
int
$level
,
string
$timestamp
,
string
$author
)
{
parent
::
__construct
(
$page
,
$rev
,
'comment'
,
$name
,
$id
,
$parent
,
$transcludedFrom
,
$level
);
$this
->
timestamp
=
$timestamp
;
$this
->
author
=
$author
;
}
/**
* @inheritDoc
*/
public
function
getAuthor
():
string
{
return
$this
->
author
;
}
/**
* @inheritDoc
*/
public
function
getTimestamp
():
DateTimeImmutable
{
return
new
DateTimeImmutable
(
$this
->
timestamp
);
}
/**
* @inheritDoc CommentItemTrait::getHeading
* @suppress PhanTypeMismatchReturnSuperType
*/
public
function
getHeading
():
DatabaseHeadingItem
{
return
$this
->
traitGetHeading
();
}
/**
* @inheritDoc CommentItemTrait::getSubscribableHeading
*/
public
function
getSubscribableHeading
():
?
DatabaseHeadingItem
{
return
$this
->
traitGetSubscribableHeading
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 17 2026, 02:43 (11 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
78/f3/b9515e989927924723aac71179c2
Default Alt Text
DatabaseCommentItem.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment