X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobSpecification.php;h=b04aa838082ac32bc00fd93b2ab730582c8ca9b1;hb=b736c1eabe226f41a9b7e63d724ac3cef0de5fd4;hp=d060c1cf65b309ad8859440d695220f8f4d8aa1e;hpb=4077b57759756ecd0d25427ec9598feb28a28ac1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobSpecification.php b/includes/jobqueue/JobSpecification.php index d060c1cf65..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 * @@ -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; }