mediawiki-extensions-Echo/includes/formatters
Matthias Mullie 0ef4df8e15 Expose more data through API
Instead of relying on the frontend to render, this enables the frontend
to do it.

The API will now accept a new format: 'model', which is basically the
presentation model's data in json format.

Some of the render code is currently only in the backend (e.g. get icon
path from icon type) so other api formats will stay available. At some
point, however, we may be able to kill those.

Bug: T115418
Change-Id: Ibc3ad54c94d6ea9bf751f3927cf69e1d062f4780
2015-11-20 19:27:34 +00:00
..
BasicFormatter.php Unstub $wgLang in BasicFormatter::getLanguage() too 2015-11-19 16:34:13 -08:00
CommentFormatter.php Move all PHP code into includes/ 2015-06-07 18:54:14 -07:00
EchoEventFormatter.php Move some boilerplate code into EchoEventFormatter 2015-10-29 21:22:54 +00:00
EchoFlyoutFormatter.php Output body in flyout 2015-11-04 16:24:37 -05:00
EchoModelFormatter.php Expose more data through API 2015-11-20 19:27:34 +00:00
EditFormatter.php Update formatting 2015-10-03 23:28:54 -04:00
EditUserTalkFormatter.php build: Enable phpcs rule 'MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment' and make pass 2015-10-29 13:06:14 +01:00
EmailUserPresentationModel.php Presentation model for email-user 2015-11-17 12:44:45 -05:00
EventPresentationModel.php Expose more data through API 2015-11-20 19:27:34 +00:00
MentionFormatter.php Move all PHP code into includes/ 2015-06-07 18:54:14 -07:00
MentionPresentationModel.php Allow presentation models to indicate a notification can't be formatted 2015-10-28 18:28:08 -07:00
NotificationFormatter.php build: Enable phpcs rule 'PSR2.Methods.MethodDeclaration.AbstractAfterVisibility' and make pass 2015-10-29 13:06:43 +01:00
PageLinkFormatter.php Update formatting 2015-10-03 23:28:54 -04:00
RevertedPresentationModel.php Presentation model for reverted 2015-11-17 10:19:15 -05:00
UserRightsFormatter.php Clean up and refactor formatting system 2015-10-19 10:00:23 -07:00
UserRightsPresentationModel.php build: Enable phpcs rule 'MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect' and make pass 2015-10-29 17:25:45 +00:00
WelcomePresentationModel.php Allow welcome notifications to have a primary link 2015-11-12 14:30:51 -08:00