MediaWiki  master
CommentStore.php
Go to the documentation of this file.
1 <?php
22 
23 use Language;
24 
54  protected const TEMP_TABLES = [
55  'rev_comment' => [
56  'table' => 'revision_comment_temp',
57  'pk' => 'revcomment_rev',
58  'field' => 'revcomment_comment_id',
59  'joinPK' => 'rev_id',
61  'deprecatedIn' => null,
62  ],
63  ];
64 
73  public function __construct( Language $lang, $stage, $tempTableStageOverrides ) {
74  parent::__construct( self::TEMP_TABLES, $lang, $stage );
75 
76  foreach ( $tempTableStageOverrides as $key => $stageOverride ) {
77  $this->tempTables[$key]['stage'] = $stageOverride;
78  }
79  }
80 }
81 
82 class_alias( CommentStore::class, 'CommentStore' );
const SCHEMA_COMPAT_WRITE_BOTH
Definition: Defines.php:273
const SCHEMA_COMPAT_READ_NEW
Definition: Defines.php:270
Base class for language-specific code.
Definition: Language.php:57
Handle database storage of comments such as edit summaries and log reasons.
__construct(Language $lang, $stage, $tempTableStageOverrides)
const TEMP_TABLES
Define fields that use temporary tables for transitional purposes Array keys are field names,...
if(!isset( $args[0])) $lang