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

Public Member Functions

 __construct ($title, $params)
 
 run ()
 
- 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 ()
 

Protected Attributes

 $userIds = array()
 
- Protected Attributes inherited from Job
 $title
 
 $removeDuplicates
 
 $error
 
 $teardownCallbacks = []
 

Additional Inherited Members

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

Detailed Description

This job is created when sending notifications to the target users. The purpose of this job is to delete older notifications when the number of notifications a user has is more than $wgEchoMaxUpdateCount, it does not make sense to have tons of notifications in the history while users wouldn't bother to click 'load more' like 100 times to see them. What we gain from this is we could run expensive queries otherwise that would requires adding index and data denormalization.

The initial job contains multiple users, which will in turn have individual jobs queued for them.

Constructor & Destructor Documentation

EchoNotificationDeleteJob::__construct (   $title,
  $params 
)
Parameters
Title$title
array$params

Member Function Documentation

EchoNotificationDeleteJob::run ( )

Run the job of finding & deleting older notifications


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