mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
26 lines
635 B
PHP
26 lines
635 B
PHP
|
<?php
|
||
|
|
||
|
// @todo Fill in
|
||
|
class EchoNotifier {
|
||
|
/**
|
||
|
* Record an EchoNotification for an EchoEvent.
|
||
|
*
|
||
|
* @todo Implement.
|
||
|
* @param $user The User to notify.
|
||
|
* @param $event The EchoEvent to notify about.
|
||
|
*/
|
||
|
public static function notifyWithNotification( $user, $event ) {
|
||
|
EchoNotification::create( array( 'user' => $user, 'event' => $event) );
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Send a Notification to a user by email
|
||
|
*
|
||
|
* @todo Implement.
|
||
|
* @param $user The User to notify.
|
||
|
* @param $event The EchoEvent to notify about.
|
||
|
*/
|
||
|
public static function notifyWithEmail( $user, $event ) {
|
||
|
// throw new MWException( "Not implemented" );
|
||
|
}
|
||
|
}
|