mediawiki-extensions-Echo/includes/formatters
Kunal Mehta 56c4b95087 Clean up and refactor formatting system
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
2015-10-19 10:00:23 -07:00
..
BasicFormatter.php Update formatting 2015-10-03 23:28:54 -04:00
CommentFormatter.php Move all PHP code into includes/ 2015-06-07 18:54:14 -07:00
EchoEventFormatter.php Clean up and refactor formatting system 2015-10-19 10:00:23 -07:00
EchoFlyoutFormatter.php Clean up and refactor formatting system 2015-10-19 10:00:23 -07:00
EditFormatter.php Update formatting 2015-10-03 23:28:54 -04:00
EditUserTalkFormatter.php Move all PHP code into includes/ 2015-06-07 18:54:14 -07:00
EventPresentationModel.php Clean up and refactor formatting system 2015-10-19 10:00:23 -07:00
MentionFormatter.php Move all PHP code into includes/ 2015-06-07 18:54:14 -07:00
MentionPresentationModel.php Clean up and refactor formatting system 2015-10-19 10:00:23 -07:00
NotificationFormatter.php Update formatting 2015-10-03 23:28:54 -04:00
PageLinkFormatter.php Update formatting 2015-10-03 23:28:54 -04:00
UserRightsFormatter.php Clean up and refactor formatting system 2015-10-19 10:00:23 -07:00
UserRightsPresentationModel.php Clean up and refactor formatting system 2015-10-19 10:00:23 -07:00