2020-03-03 22:50:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MediaWiki\User\Hook;
|
|
|
|
|
|
2020-04-10 00:35:43 +00:00
|
|
|
use User;
|
|
|
|
|
|
2020-03-03 22:50:34 +00:00
|
|
|
/**
|
|
|
|
|
* @stable for implementation
|
|
|
|
|
* @ingroup Hooks
|
|
|
|
|
*/
|
|
|
|
|
interface UserClearNewTalkNotificationHook {
|
|
|
|
|
/**
|
2020-04-10 00:35:43 +00:00
|
|
|
* This hook is called before clearing the "You have new messages!" message
|
2020-03-03 22:50:34 +00:00
|
|
|
*
|
|
|
|
|
* @since 1.35
|
|
|
|
|
*
|
2020-04-10 00:35:43 +00:00
|
|
|
* @param User $user User (object) that will clear the message
|
|
|
|
|
* @param int $oldid ID of the talk page revision being viewed (0 means the most recent one)
|
|
|
|
|
* @return bool|void True or no return value to continue or false to abort (not clear the message)
|
2020-03-03 22:50:34 +00:00
|
|
|
*/
|
|
|
|
|
public function onUserClearNewTalkNotification( $user, $oldid );
|
|
|
|
|
}
|