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