BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
CategoryMembershipChangeJob Class Reference
Inheritance diagram for CategoryMembershipChangeJob:
Collaboration diagram for CategoryMembershipChangeJob:

Public Member Functions

 __construct (Title $title, array $params)
 
 run ()
 
 getDeduplicationInfo ()
 
- Public Member Functions inherited from Job
 run ()
 
 __construct ($command, $title, $params=false)
 
 getType ()
 
 getTitle ()
 
 getParams ()
 
 getReleaseTimestamp ()
 
 getQueuedTimestamp ()
 
 getRequestId ()
 
 getReadyTimestamp ()
 
 ignoreDuplicates ()
 
 allowRetries ()
 
 workItemCount ()
 
 getDeduplicationInfo ()
 
 getRootJobParams ()
 
 hasRootJobParams ()
 
 isRootJob ()
 
 teardown ()
 
 insert ()
 
 toString ()
 
 getLastError ()
 

Public Attributes

const ENQUEUE_FUDGE_SEC = 60
 
- Public Attributes inherited from Job
 $command
 
 $params
 
 $metadata = []
 

Protected Member Functions

 notifyUpdatesForRevision (WikiPage $page, Revision $newRev)
 
- Protected Member Functions inherited from Job
 addTeardownCallback ($callback)
 
 setLastError ($error)
 

Additional Inherited Members

- Static Public Member Functions inherited from Job
static factory ($command, Title $title, $params=[])
 
static batchInsert ($jobs)
 
static newRootJobParams ($key)
 
- Protected Attributes inherited from Job
 $title
 
 $removeDuplicates
 
 $error
 
 $teardownCallbacks = []
 

Detailed Description

Job to add recent change entries mentioning category membership changes

Parameters include:

  • pageId : page ID
  • revTimestamp : timestamp of the triggering revision

Category changes will be mentioned for revisions at/after the timestamp for this page

Since
1.27

Member Function Documentation

CategoryMembershipChangeJob::getDeduplicationInfo ( )

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.

Returns
array Map of key/values

Implements IJobSpecification.

CategoryMembershipChangeJob::notifyUpdatesForRevision ( WikiPage  $page,
Revision  $newRev 
)
protected
Parameters
WikiPage$page
Revision$newRev
Exceptions
MWException

The documentation for this class was generated from the following file: