00001 <?php
00002
00008 class EnotifNotifyJob extends Job {
00009
00010 function __construct( $title, $params, $id = 0 ) {
00011 parent::__construct( 'enotifNotify', $title, $params, $id );
00012 }
00013
00014 function run() {
00015 $enotif = new EmailNotification();
00016
00017 if( isset($this->params['editorID']) && $this->params['editorID'] ) {
00018 $editor = User::newFromId( $this->params['editorID'] );
00019
00020 } else {
00021 $editor = User::newFromName( $this->params['editor'], false );
00022 }
00023 $enotif->actuallyNotifyOnPageChange(
00024 $editor,
00025 $this->title,
00026 $this->params['timestamp'],
00027 $this->params['summary'],
00028 $this->params['minorEdit'],
00029 $this->params['oldid'],
00030 $this->params['watchers']
00031 );
00032 return true;
00033 }
00034
00035 }