wiki.techinc.nl/includes/parser
Aaron Schulz 930ccf282c * Split off WikiPage class from Article, WikiFilePage class from ImagePage, and WikiCategoryPage from CategoryPage.
* WikiPage functions/fields are "magically" part of Article when accessed for b/c. Magic is kind of ugly but there are too many callers to make breaking changes atm. Some functions are just wrappers for WikiPage ones (were magic won't work).
* Added newFromID() to each WikiPage subclass (works around pre-existing inheritance problem).
* Added Page class for convenient type hinting and changed hints from Article -> Page. This lets things use WikiPage objects without getting type errors.
* Updated FlaggedPage to extend WikiPage. Worked around getOldIdFromRequest().
* Added setTimestamp() to WikiPage and moved some timestamp setting code from ParserCache to Article.
* Removed ampersands from $dbw arguments.
* @TODO: dependency inject user objects for WikiPage

The idea is to migrate things to use WikiPage, as the run-of-the-mill "new Article()" call doesn't care about $oldid and $wgRequest. After that, Article, ImagePage, and CategoryPage can be rewritten as an Action class or something sane (a Viewer class of sorts).
2011-06-29 22:09:51 +00:00
..
CoreLinkFunctions.php Remove @static from all over the place. That's what the static keyword is for, this being PHP5 and all 2011-04-21 00:07:09 +00:00
CoreParserFunctions.php Fu r90453. Updates comments 2011-06-20 10:19:52 +00:00
CoreTagHooks.php And even more documentation in various files 2011-05-29 14:25:20 +00:00
DateFormatter.php * (bug 28511) Use [] syntax instead of {} for string offset access 2011-04-17 07:59:58 +00:00
LinkHolderArray.php And even more documentation in various files 2011-05-29 14:25:20 +00:00
Parser.php $wgContLang no longer used here 2011-06-29 13:23:51 +00:00
Parser_DiffTest.php More return type documentation 2011-02-08 23:18:13 +00:00
Parser_LinkHooks.php Some HipHop fixes: 2011-05-27 06:25:21 +00:00
ParserCache.php * Split off WikiPage class from Article, WikiFilePage class from ImagePage, and WikiCategoryPage from CategoryPage. 2011-06-29 22:09:51 +00:00
ParserOptions.php Address comment by Platonides on r90320: 2011-06-18 14:49:01 +00:00
ParserOutput.php And even more documentation, the last of this batch 2011-05-28 19:00:01 +00:00
Preprocessor.php And even more documentation, the last of this batch 2011-05-28 19:00:01 +00:00
Preprocessor_DOM.php Provisional revert of r89648: "Another try at fixing bug 93 "tilde signatures inside nowiki tags sometimes get expanded (<includeonly><nowiki>~~~~</nowiki></includeonly>)"" 2011-06-07 17:34:20 +00:00
Preprocessor_Hash.php Provisional revert of r89648: "Another try at fixing bug 93 "tilde signatures inside nowiki tags sometimes get expanded (<includeonly><nowiki>~~~~</nowiki></includeonly>)"" 2011-06-07 17:34:20 +00:00
Preprocessor_HipHop.hphp Explored some ideas for HipHop optimisation. Made a preprocessor implementation, based on a copy of Preprocessor_Hash, with a preprocessToObj() which is optimised. It takes 33% less time than Preprocessor_Hash for a certain realistic test case (the Barack Obama article). Some notes about what I did: 2011-06-02 02:44:33 +00:00
StripState.php And even more documentation, the last of this batch 2011-05-28 19:00:01 +00:00
Tidy.php More parameter documentation!! 2011-05-28 15:59:57 +00:00