It isn't always possible to know all the keys to the ExtensionData after it's been set, for example, if there's a parser function that may be included multiple times on a page and thus stores multiple sets of data via function hooks (T121068). We could store the keys in some kind of cache, but that would defeat the entire purpose of using ExtensionData. Instead there should be a way to retrieve all the ExtensionData at once (without specifying any keys).
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Adding ability to retrieve all the ExtensionData at once | mediawiki/core | master | +14 -6 |
Related Objects
Related Objects
Event Timeline
Comment Actions
Change 258181 had a related patch set uploaded (by Kaldari):
Adding ability to retrieve all the ExtensionData at once
Comment Actions
My inclination would be for the extension to store multiple-instance data in an array or object that's referenced through a single known key.
Comment Actions
Change 258181 abandoned by Kaldari:
Adding ability to retrieve all the ExtensionData at once
Reason:
per brion at https://phabricator.wikimedia.org/T121124