mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +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 |
||
---|---|---|
.. | ||
api | ||
cache | ||
controller | ||
exception | ||
formatters | ||
gateway | ||
iterator | ||
jobs | ||
mapper | ||
model | ||
special | ||
AttributeManager.php | ||
BatchRowUpdate.php | ||
ContainmentSet.php | ||
DataOutputFormatter.php | ||
DeferredMarkAsReadUpdate.php | ||
DiffParser.php | ||
DiscussionParser.php | ||
EchoDbFactory.php | ||
EmailBatch.php | ||
EmailBundler.php | ||
EmailFormatter.php | ||
EventLogging.php | ||
NotifUser.php | ||
schemaUpdate.php | ||
SeenTime.php | ||
UserLocator.php |