MediaWiki  1.31.0
CommentStoreComment Class Reference

CommentStoreComment represents a comment stored by CommentStore. More...

Collaboration diagram for CommentStoreComment:

Public Member Functions

 __construct ( $id, $text, Message $message=null, array $data=null)
 

Static Public Member Functions

static newUnsavedComment ( $comment, array $data=null)
 Create a new, unsaved CommentStoreComment. More...
 

Public Attributes

array null $data
 Structured data of the comment. More...
 
int null $id
 Comment ID, if any. More...
 
Message $message
 Message version of the comment. More...
 
string $text
 Text version of the comment. More...
 

Detailed Description

CommentStoreComment represents a comment stored by CommentStore.

The fields should be considered read-only.

Since
1.30

Definition at line 28 of file CommentStoreComment.php.

Constructor & Destructor Documentation

◆ __construct()

CommentStoreComment::__construct (   $id,
  $text,
Message  $message = null,
array  $data = null 
)
Access:\n private For use by CommentStore only. Use self::newUnsavedComment() instead.
Parameters
int | null$id
string$text
Message | null$message
array | null$data

Definition at line 49 of file CommentStoreComment.php.

References $data, $id, $text, data, message, and text.

Member Function Documentation

◆ newUnsavedComment()

Member Data Documentation

◆ $data

array null CommentStoreComment::$data

Structured data of the comment.

Definition at line 40 of file CommentStoreComment.php.

Referenced by __construct(), and newUnsavedComment().

◆ $id

int null CommentStoreComment::$id

Comment ID, if any.

Definition at line 31 of file CommentStoreComment.php.

Referenced by __construct().

◆ $message

Message CommentStoreComment::$message

Message version of the comment.

Might be a RawMessage

Definition at line 37 of file CommentStoreComment.php.

Referenced by newUnsavedComment().

◆ $text

string CommentStoreComment::$text

Text version of the comment.

Definition at line 34 of file CommentStoreComment.php.

Referenced by __construct(), and newUnsavedComment().


The documentation for this class was generated from the following file: