Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
ProgressStatsTableFactory.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\Statistics;
5
6use MediaWiki\Context\IContextSource;
9use MediaWiki\Linker\LinkRenderer;
10
17
18 public function __construct(
19 private readonly LinkRenderer $linkRenderer,
20 private readonly ConfigHelper $configHelper,
21 private readonly MessageGroupMetadata $messageGroupMetadata,
22 ) {
23 }
24
25 public function newFromContext( IContextSource $contextSource ): StatsTable {
26 return new StatsTable(
27 $this->linkRenderer,
28 $this->configHelper,
29 $contextSource,
30 $contextSource->getLanguage(),
31 $this->messageGroupMetadata
32 );
33 }
34
35}
Offers functionality for reading and updating Translate group related metadata.
Implements generation of HTML stats table.
A helper class added to work with configuration values of the Translate Extension.