MediaWiki  1.23.12
Go to the documentation of this file.
1 <?php
29 class EnotifNotifyJob extends Job {
30  function __construct( $title, $params ) {
31  parent::__construct( 'enotifNotify', $title, $params );
32  }
34  function run() {
35  $enotif = new EmailNotification();
36  // Get the user from ID (rename safe). Anons are 0, so defer to name.
37  if ( isset( $this->params['editorID'] ) && $this->params['editorID'] ) {
38  $editor = User::newFromId( $this->params['editorID'] );
39  // B/C, only the name might be given.
40  } else {
41  # @todo FIXME: newFromName could return false on a badly configured wiki.
42  $editor = User::newFromName( $this->params['editor'], false );
43  }
44  $enotif->actuallyNotifyOnPageChange(
45  $editor,
46  $this->title,
47  $this->params['timestamp'],
48  $this->params['summary'],
49  $this->params['minorEdit'],
50  $this->params['oldid'],
51  $this->params['watchers'],
52  $this->params['pageStatus']
53  );
55  return true;
56  }
57 }
Run the job.
Definition: EnotifNotifyJob.php:34
static newFromId( $id)
Static factory method for creation from a given user ID.
Definition: User.php:412
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Title $title
Definition: Job.php:38
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
Definition: User.php:389
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
Definition: All_system_messages.txt:2703
Class to both describe a background job and handle jobs.
Definition: Job.php:31
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections & $editor
Definition: hooks.txt:1038
array bool $params
Array of job parameters or false if none *.
Definition: Job.php:34
__construct( $title, $params)
Definition: EnotifNotifyJob.php:30
This module processes the email notifications when the current page is changed.
Definition: UserMailer.php:475
Job for email notification mails.
Definition: EnotifNotifyJob.php:29