wiki.techinc.nl/includes/preferences
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 Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
DefaultPreferencesFactory.php Remove "auto-number headings" preference 2021-10-03 00:47:08 +02:00
Filter.php
IntvalFilter.php
MultiTitleFilter.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MultiUsernameFilter.php Use CentralIdLookup service instead of static factory 2021-07-26 07:00:53 -07:00
PreferencesFactory.php Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00
SignatureValidator.php Add new ParserOutput::{get,set}OutputFlag() interface 2021-10-15 14:25:54 -04:00
TimezoneFilter.php Split TimeCorrection parser into separate class 2021-05-07 10:43:09 -07:00