X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobSpecification.php;h=b04aa838082ac32bc00fd93b2ab730582c8ca9b1;hb=54a8b9a14f42b063a143a981067ba564860ec556;hp=af5646aa927a4d8d52ff612d705f087e7031f6d0;hpb=2dd32981a8326a6207ac866b39410f1b86179288;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobSpecification.php b/includes/jobqueue/JobSpecification.php index af5646aa92..b04aa83808 100644 --- a/includes/jobqueue/JobSpecification.php +++ b/includes/jobqueue/JobSpecification.php @@ -20,69 +20,6 @@ * @file */ -/** - * Job queue task description interface - * - * @ingroup JobQueue - * @since 1.23 - */ -interface IJobSpecification { - /** - * @return string Job type - */ - public function getType(); - - /** - * @return array - */ - public function getParams(); - - /** - * @return int|null UNIX timestamp to delay running this job until, otherwise null - */ - public function getReleaseTimestamp(); - - /** - * @return bool Whether only one of each identical set of jobs should be run - */ - public function ignoreDuplicates(); - - /** - * Subclasses may need to override this to make duplication detection work. - * The resulting map conveys everything that makes the job unique. This is - * only checked if ignoreDuplicates() returns true, meaning that duplicate - * jobs are supposed to be ignored. - * - * @return array Map of key/values - */ - public function getDeduplicationInfo(); - - /** - * @see JobQueue::deduplicateRootJob() - * @return array - * @since 1.26 - */ - public function getRootJobParams(); - - /** - * @see JobQueue::deduplicateRootJob() - * @return bool - * @since 1.22 - */ - public function hasRootJobParams(); - - /** - * @see JobQueue::deduplicateRootJob() - * @return bool Whether this is job is a root job - */ - public function isRootJob(); - - /** - * @return Title Descriptive title (this can simply be informative) - */ - public function getTitle(); -} - /** * Job queue task description base code * @@ -117,7 +54,7 @@ class JobSpecification implements IJobSpecification { * @param string $type * @param array $params Map of key/values * @param array $opts Map of key/values; includes 'removeDuplicates' - * @param Title $title Optional descriptive title + * @param Title|null $title Optional descriptive title */ public function __construct( $type, array $params, array $opts = [], Title $title = null @@ -127,7 +64,7 @@ class JobSpecification implements IJobSpecification { $this->type = $type; $this->params = $params; - $this->title = $title ?: Title::makeTitle( NS_SPECIAL, 'Badtitle/' . static::class ); + $this->title = $title ?: Title::makeTitle( NS_SPECIAL, 'Blankpage' ); $this->opts = $opts; }