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
17 private $linkRenderer;
19 private $configHelper;
20
21 public function __construct(
22 LinkRenderer $linkRenderer,
23 ConfigHelper $configHelper
24 ) {
25 $this->linkRenderer = $linkRenderer;
26 $this->configHelper = $configHelper;
27 }
28
29 public function newFromContext( IContextSource $contextSource ): StatsTable {
30 return new StatsTable(
31 $this->linkRenderer,
32 $this->configHelper,
33 $contextSource,
34 $contextSource->getLanguage()
35 );
36 }
37
38}
Implements generation of HTML stats table.
A helper class added to work with configuration values of the Translate Extension.