Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
SynchroniseThreadArticleDataJob
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 run
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3use MediaWiki\MediaWikiServices;
4
5class SynchroniseThreadArticleDataJob extends Job {
6    public function __construct( $title, $params ) {
7        parent::__construct( 'synchroniseThreadArticleData', $title, $params );
8    }
9
10    /**
11     * Execute the job
12     *
13     * @return bool
14     */
15    public function run() {
16        $article = MediaWikiServices::getInstance()->getWikiPageFactory()->newFromTitle( $this->title );
17        $limit = $this->params['limit'];
18        $cascade = $this->params['cascade'];
19
20        Threads::synchroniseArticleData( $article, $limit, $cascade );
21
22        return true;
23    }
24}