|
MediaWiki master
|
Value object for a comment stored by CommentStore. More...

Public Member Functions | |
| __construct ( $id, string $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. | |
Value object for a comment stored by CommentStore.
The fields should be considered read-only.
Definition at line 22 of file CommentStoreComment.php.
| MediaWiki\CommentStore\CommentStoreComment::__construct | ( | $id, | |
| string | $text, | ||
| ?Message | $message = null, | ||
| ?array | $data = null ) |
| int | null | $id | |
| string | $text | |
| Message | null | $message | |
| array | null | $data |
Definition at line 43 of file CommentStoreComment.php.
References MediaWiki\CommentStore\CommentStoreComment\$data, MediaWiki\CommentStore\CommentStoreComment\$id, MediaWiki\CommentStore\CommentStoreComment\$message, MediaWiki\CommentStore\CommentStoreComment\$text, and MediaWiki\Message\Message\plaintextParam().
|
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 63 of file CommentStoreComment.php.
References MediaWiki\CommentStore\CommentStoreComment\$data, MediaWiki\CommentStore\CommentStoreComment\$message, MediaWiki\CommentStore\CommentStoreComment\$text, MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\Message\Message\inLanguage().
Referenced by MediaWiki\CommentStore\CommentStore\createComment(), and MediaWiki\Actions\McrUndoAction\onSubmit().
| array null MediaWiki\CommentStore\CommentStoreComment::$data |
Structured data of the comment.
Definition at line 34 of file CommentStoreComment.php.
Referenced by MediaWiki\CommentStore\CommentStoreComment\__construct(), and MediaWiki\CommentStore\CommentStoreComment\newUnsavedComment().
| int null MediaWiki\CommentStore\CommentStoreComment::$id |
Comment ID, if any.
Definition at line 25 of file CommentStoreComment.php.
Referenced by MediaWiki\CommentStore\CommentStoreComment\__construct().
| Message MediaWiki\CommentStore\CommentStoreComment::$message |
Message version of the comment.
Might be a RawMessage
Definition at line 31 of file CommentStoreComment.php.
Referenced by MediaWiki\CommentStore\CommentStoreComment\__construct(), and MediaWiki\CommentStore\CommentStoreComment\newUnsavedComment().
| string MediaWiki\CommentStore\CommentStoreComment::$text |
Text version of the comment.
Definition at line 28 of file CommentStoreComment.php.
Referenced by MediaWiki\CommentStore\CommentStoreComment\__construct(), and MediaWiki\CommentStore\CommentStoreComment\newUnsavedComment().