mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 09:40:41 +00:00
56c4b95087
The workflow to format a notification is * Get EchoEvent, User, and Language * Get EchoEventFormatter implementation for notification type ** EchoEventFormatter returns structured data about each part of the notification (header, body, primary link, secondary link(s)) * Each output type will have a formatter class (e.g. EchoSpecialNotificationsFormatter, EchoPlainTextEmailFormatter) which takes a EchoEventPresentationModel and generates whatever it wants (HTML, plain-text email, etc). Included is an example conversion of the user-rights and mention formatters. The previous infrastructure will remain in place for backwards compatability until other extensions can be updated. Bug: T107823 Change-Id: I4397872a7ec062148dfcb066ddd8ab83f40486ac |
||
---|---|---|
.. | ||
BasicFormatter.php | ||
CommentFormatter.php | ||
EchoEventFormatter.php | ||
EchoFlyoutFormatter.php | ||
EditFormatter.php | ||
EditUserTalkFormatter.php | ||
EventPresentationModel.php | ||
MentionFormatter.php | ||
MentionPresentationModel.php | ||
NotificationFormatter.php | ||
PageLinkFormatter.php | ||
UserRightsFormatter.php | ||
UserRightsPresentationModel.php |