33 parent::__construct(
'enotifNotify', $title, $params );
36 public function run() {
39 if ( isset( $this->params[
'editorID'] ) && $this->params[
'editorID'] ) {
40 $editor = User::newFromId( $this->params[
'editorID'] );
43 # @todo FIXME: newFromName could return false on a badly configured wiki.
44 $editor = User::newFromName( $this->params[
'editor'],
false );
46 if ( !array_key_exists(
'rc_id', $this->params ) ) {
48 'Cannot execute EnotifNotifyJob without `rc_id`. This has to be an old job'
52 $recentChange = RecentChange::newFromId( $this->params[
'rc_id'] );
53 if ( $recentChange ) {
54 $enotif->actuallyNotifyOnPageChange(
58 $this->params[
'watchers'],
59 $this->params[
'pageStatus']
Find watchers and create notifications after a page is changed.
Send an email notification.
__construct(Title $title, array $params)