Index: trunk/phase3/includes/parser/Parser_LinkHooks.php |
— | — | @@ -9,8 +9,7 @@ |
10 | 10 | * Parser with LinkHooks experiment |
11 | 11 | * @ingroup Parser |
12 | 12 | */ |
13 | | -class Parser_LinkHooks extends Parser |
14 | | -{ |
| 13 | +class Parser_LinkHooks extends Parser { |
15 | 14 | /** |
16 | 15 | * Update this version number when the ParserOutput format |
17 | 16 | * changes in an incompatible way, so the parser cache |
— | — | @@ -38,10 +37,8 @@ |
39 | 38 | |
40 | 39 | /** |
41 | 40 | * Constructor |
42 | | - * |
43 | | - * @public |
44 | 41 | */ |
45 | | - function __construct( $conf = array() ) { |
| 42 | + public function __construct( $conf = array() ) { |
46 | 43 | parent::__construct( $conf ); |
47 | 44 | $this->mLinkHooks = array(); |
48 | 45 | } |
— | — | @@ -82,8 +79,6 @@ |
83 | 80 | * True) (Treat as link) Parse the link according to normal link rules |
84 | 81 | * False) (Bad link) Just output the raw wikitext (You may modify the text first) |
85 | 82 | * |
86 | | - * @public |
87 | | - * |
88 | 83 | * @param $ns Integer or String: the Namespace ID or regex pattern if SLH_PATTERN is set |
89 | 84 | * @param $callback Mixed: the callback function (and object) to use |
90 | 85 | * @param $flags Integer: a combination of the following flags: |
— | — | @@ -91,7 +86,7 @@ |
92 | 87 | * |
93 | 88 | * @return The old callback function for this name, if any |
94 | 89 | */ |
95 | | - function setLinkHook( $ns, $callback, $flags = 0 ) { |
| 90 | + public function setLinkHook( $ns, $callback, $flags = 0 ) { |
96 | 91 | if( $flags & SLH_PATTERN && !is_string($ns) ) |
97 | 92 | throw new MWException( __METHOD__.'() expecting a regex string pattern.' ); |
98 | 93 | elseif( $flags | ~SLH_PATTERN && !is_int($ns) ) |