MediaWiki REL1_31
|
CommentStoreComment represents a comment stored by CommentStore. More...
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. | |
Public Attributes | |
array null | $data |
Structured data of the comment. | |
int null | $id |
Comment ID, if any. | |
Message | $message |
Message version of the comment. | |
string | $text |
Text version of the comment. | |
CommentStoreComment represents a comment stored by CommentStore.
The fields should be considered read-only.
Definition at line 28 of file CommentStoreComment.php.
CommentStoreComment::__construct | ( | $id, | |
$text, | |||
Message | $message = null, | ||
array | $data = null ) |
int | null | $id | |
string | $text | |
Message | null | $message | |
array | null | $data |
Definition at line 49 of file CommentStoreComment.php.
|
static |
Create a new, unsaved CommentStoreComment.
string | Message | CommentStoreComment | $comment | Comment text or Message object. A CommentStoreComment is also accepted here, in which case it is returned unchanged. |
array | null | $data | Structured data to store. Keys beginning with '_' are reserved. Ignored if $comment is a CommentStoreComment. |
Definition at line 65 of file CommentStoreComment.php.
References $data, $wgContLang, and Message\inLanguage().
array null CommentStoreComment::$data |
Structured data of the comment.
Definition at line 40 of file CommentStoreComment.php.
Referenced by __construct(), and newUnsavedComment().
int null CommentStoreComment::$id |
Comment ID, if any.
Definition at line 31 of file CommentStoreComment.php.
Referenced by __construct().
Message CommentStoreComment::$message |
Message version of the comment.
Might be a RawMessage
Definition at line 37 of file CommentStoreComment.php.
string CommentStoreComment::$text |
Text version of the comment.
Definition at line 34 of file CommentStoreComment.php.