wiki.techinc.nl/includes/Revision
C. Scott Ananian 06ab90f163 Add new ParserOutput::{get,set}OutputFlag() interface
This is a uniform mechanism to access a number of bespoke boolean
flags in ParserOutput.  It allows extensibility in core (by adding new
field names to ParserOutputFlags) without exposing new getter/setter
methods to Parsoid.  It replaces the ParserOutput::{get,set}Flag()
interface which (a) doesn't allow access to certain flags, and (b) is
typically called with a string rather than a constant, and (c) has a
very generic name.  (Note that Parser::setOutputFlag() already called
these "output flags".)

In the future we might unify the representation so that we store
everything in $mFlags and don't have explicit properties in
ParserOutput, but those representation details should be invisible to
the clients of this API.  (We might also use a proper enumeration
for ParserOutputFlags, when PHP supports this.)

There is some overlap with ParserOutput::{get,set}ExtensionData(), but
I've left those methods as-is because (a) they allow for non-boolean
data, unlike the *Flag() methods, and (b) it seems worthwhile to
distingush properties set by extensions from properties used by core.

Code search:
https://codesearch.wmcloud.org/search/?q=%5BOo%5Dut%28put%29%3F%28%5C%28%5C%29%29%3F-%3E%28g%7Cs%29etFlag%5C%28&i=nope&files=&excludeFiles=&repos=

Bug: T292868
Change-Id: I39bc58d207836df6f328c54be9e3330719cebbeb
2021-10-15 14:25:54 -04:00
..
Hook Remove hooks that use Revision objects 2021-04-30 17:28:20 +00:00
ContributionsLookup.php Introduce CommentFormatter 2021-09-28 11:13:03 -07:00
ContributionsSegment.php Remove comments that repeat the code 2021-06-02 08:03:09 +00:00
FallbackSlotRoleHandler.php Narrow PageUpdater dependency from Title 2021-07-26 19:45:11 -07:00
IncompleteRevisionException.php Mark exceptions as @newable 2020-07-08 17:51:38 +00:00
MainSlotRoleHandler.php Narrow PageUpdater dependency from Title 2021-07-26 19:45:11 -07:00
MutableRevisionRecord.php build: Update mediawiki/mediawiki-phan-config to 0.11.0 2021-09-07 17:19:05 +02:00
MutableRevisionSlots.php MCR import 2020-07-18 20:34:16 -04:00
RenderedRevision.php Add new ParserOutput::{get,set}OutputFlag() interface 2021-10-15 14:25:54 -04:00
RevisionAccessException.php Make RevisionAccessException normalized 2021-07-15 21:49:17 -07:00
RevisionArchiveRecord.php Replace Assert::parameterType with typehints 2021-08-03 10:03:48 -04:00
RevisionFactory.php DeletedContribsPager row filtering with RevisionStore::isRevisionRow 2021-08-18 15:18:24 -04:00
RevisionLookup.php docs: Change wording master to primary in comments and log text 2021-09-01 23:04:40 +02:00
RevisionRecord.php Add typehints to several methods 2021-08-31 16:19:13 +00:00
RevisionRenderer.php docs: Change wording master to primary in comments and log text 2021-09-01 23:04:40 +02:00
RevisionSlots.php Merge "Add typehints to several methods" 2021-08-31 16:50:57 +00:00
RevisionStore.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
RevisionStoreCacheRecord.php docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
RevisionStoreFactory.php Post Revision-removal cleanup 2021-06-24 00:32:39 +00:00
RevisionStoreRecord.php Replace Assert::parameterType with typehints 2021-08-03 10:03:48 -04:00
SlotRecord.php Using @return never documentation on always-throw-function 2021-09-07 17:29:03 +02:00
SlotRenderingProvider.php Remove auto-generated "created by PHPStorm" comment 2020-05-14 13:58:53 +02:00
SlotRoleHandler.php Narrow PageUpdater dependency from Title 2021-07-26 19:45:11 -07:00
SlotRoleRegistry.php Narrow PageUpdater dependency from Title 2021-07-26 19:45:11 -07:00
SuppressedDataException.php Mark exceptions as @newable 2020-07-08 17:51:38 +00:00