summaryrefslogtreecommitdiff
blob: 5b262288b59016c8b98e9e421fe9cc1cd8ea4a1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php

namespace SMW\MediaWiki\Jobs;

use Title;

/**
 * Access MediaWiki Job instances
 *
 * @license GNU GPL v2+
 * @since 2.0
 *
 * @author mwjames
 */
class JobFactory {

	/**
	 * @since 2.0
	 *
	 * @param Title $title
	 *
	 * @return UpdateJob
	 */
	public function newUpdateJob( Title $title ) {
		return new UpdateJob( $title );
	}

	/**
	 * @since 2.0
	 *
	 * @param Title $title
	 * @param array $parameters
	 *
	 * @return UpdateDispatcherJob
	 */
	public function newUpdateDispatcherJob( Title $title, array $parameters = array() ) {
		return new UpdateDispatcherJob( $title, $parameters );
	}

}