Handle database storage of comments such as edit summaries and log reasons.
More...
|
const | TEMP_TABLES |
| Define fields that use temporary tables for transitional purposes Array keys are field names, values are arrays with these possible fields: More...
|
|
Handle database storage of comments such as edit summaries and log reasons.
- Since
- 1.30
Definition at line 44 of file CommentStore.php.
◆ __construct()
MediaWiki\CommentStore\CommentStore::__construct |
( |
Language |
$lang, |
|
|
|
$stage, |
|
|
|
$tempTableStageOverrides |
|
) |
| |
- Parameters
-
Language | $lang | Language to use for comment truncation. Defaults to content language. |
int | $stage | One of the MIGRATION_* constants, or an appropriate combination of SCHEMA_COMPAT_* constants. Always MIGRATION_NEW for MediaWiki core since 1.33. |
array | $tempTableStageOverrides | |
Definition at line 74 of file CommentStore.php.
References $lang.
◆ getStore()
static MediaWiki\CommentStore\CommentStore::getStore |
( |
| ) |
|
|
static |
◆ TEMP_TABLES
const MediaWiki\CommentStore\CommentStore::TEMP_TABLES |
|
protected |
Initial value:= [
'rev_comment' => [
'table' => 'revision_comment_temp',
'pk' => 'revcomment_rev',
'field' => 'revcomment_comment_id',
'joinPK' => 'rev_id',
'deprecatedIn' => null,
],
]
Define fields that use temporary tables for transitional purposes Array keys are field names, values are arrays with these possible fields:
- table: Temporary table name
- pk: Temporary table column referring to the main table's primary key
- field: Temporary table column referring comment.comment_id
- joinPK: Main table's primary key
- stage: Migration stage
- deprecatedIn: Version when using insertWithTempTable() was deprecated
Definition at line 55 of file CommentStore.php.
The documentation for this class was generated from the following file: