Split out doBlockLevels() into its own class
authorTim Starling <tstarling@wikimedia.org>
Fri, 6 May 2016 02:56:37 +0000 (12:56 +1000)
committerTim Starling <tstarling@wikimedia.org>
Fri, 6 May 2016 04:40:20 +0000 (14:40 +1000)
commit2e3c1f87e2a20aa1bfb9aec2a0b8429ce175e2ac
tree82baa29b455fadd38b2aa43252cc31b2dac4133d
parent2196031b721fbd2078c2351823d931d6a6dbca67
Split out doBlockLevels() into its own class

It's independent of the rest of the Parser, but quite intrusive, with
its own instance variables and several private functions. It's also
pretty big (500 lines).

I removed a few functions from Parser here which were always marked
@private in the doc comment, but were inappropriately marked
"public" in the function declaration after migration to PHP 5. I grepped
core and deployed extensions and found no callers.

The helper functions are now all private, and the constructor is
private, with just a single public static entry point, reflecting
the self-contained nature of the module and its lack of hooks.

Change-Id: I1693ed48a9194719611b4afd9d989d44f0610f8d
autoload.php
includes/parser/BlockLevelPass.php [new file with mode: 0644]
includes/parser/Parser.php