r71434 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71433‎ | r71434 | r71435 >
Date:14:31, 22 August 2010
Author:ialex
Status:ok
Tags:
Comment:
* Added file description headers
* Added @file where needed
Modified paths:
  • /trunk/phase3/includes/json/FormatJson.php (modified) (history)
  • /trunk/phase3/includes/parser/CoreLinkFunctions.php (modified) (history)
  • /trunk/phase3/includes/parser/CoreParserFunctions.php (modified) (history)
  • /trunk/phase3/includes/parser/CoreTagHooks.php (modified) (history)
  • /trunk/phase3/includes/parser/DateFormatter.php (modified) (history)
  • /trunk/phase3/includes/parser/LinkHolderArray.php (modified) (history)
  • /trunk/phase3/includes/parser/ParserCache.php (modified) (history)
  • /trunk/phase3/includes/parser/ParserOptions.php (modified) (history)
  • /trunk/phase3/includes/parser/ParserOutput.php (modified) (history)
  • /trunk/phase3/includes/parser/Parser_DiffTest.php (modified) (history)
  • /trunk/phase3/includes/parser/Parser_LinkHooks.php (modified) (history)
  • /trunk/phase3/includes/parser/Preprocessor.php (modified) (history)
  • /trunk/phase3/includes/parser/Preprocessor_DOM.php (modified) (history)
  • /trunk/phase3/includes/parser/Preprocessor_Hash.php (modified) (history)
  • /trunk/phase3/includes/parser/Tidy.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/json/FormatJson.php
@@ -1,7 +1,10 @@
22 <?php
33 /**
44 * Simple wrapper for json_econde and json_decode that falls back on Services_JSON class
 5+ *
 6+ * @file
57 */
 8+
69 if ( !defined( 'MEDIAWIKI' ) ) {
710 die( 1 );
811 }
Index: trunk/phase3/includes/parser/Preprocessor_Hash.php
@@ -1,6 +1,12 @@
22 <?php
3 -
43 /**
 4+ * Preprocessor using PHP arrays
 5+ *
 6+ * @file
 7+ * @ingroup Parser
 8+ */
 9+
 10+/**
511 * Differences from DOM schema:
612 * * attribute nodes are children
713 * * <h> nodes that aren't at the top are replaced with <possible-h>
Index: trunk/phase3/includes/parser/Tidy.php
@@ -1,4 +1,9 @@
22 <?php
 3+/**
 4+ * HTML validation and correction
 5+ *
 6+ * @file
 7+ */
38
49 /**
510 * Class to interact with HTML tidy
Index: trunk/phase3/includes/parser/LinkHolderArray.php
@@ -1,5 +1,13 @@
22 <?php
 3+/**
 4+ * Holder of replacement pairs for wiki links
 5+ *
 6+ * @file
 7+ */
38
 9+/**
 10+ * @ingroup Parser
 11+ */
412 class LinkHolderArray {
513 var $internals = array(), $interwikis = array();
614 var $size = 0;
Index: trunk/phase3/includes/parser/ParserOutput.php
@@ -1,5 +1,12 @@
22 <?php
33 /**
 4+ * Output of the PHP parser
 5+ *
 6+ * @file
 7+ * @ingroup Parser
 8+ */
 9+
 10+/**
411 * @todo document
512 * @ingroup Parser
613 */
Index: trunk/phase3/includes/parser/Parser_LinkHooks.php
@@ -1,5 +1,11 @@
22 <?php
33 /**
 4+ * Modified version of the PHP parser with hooks for wiki links; experimental
 5+ *
 6+ * @file
 7+ */
 8+
 9+/**
410 * Parser with LinkHooks experiment
511 * @ingroup Parser
612 */
Index: trunk/phase3/includes/parser/CoreParserFunctions.php
@@ -1,4 +1,9 @@
22 <?php
 3+/**
 4+ * Parser functions provided by MediaWiki core
 5+ *
 6+ * @file
 7+ */
38
49 /**
510 * Various core parser functions, registered in Parser::firstCallInit()
Index: trunk/phase3/includes/parser/CoreLinkFunctions.php
@@ -1,4 +1,9 @@
22 <?php
 3+/**
 4+ * Link functions provided by MediaWiki core; experimental
 5+ *
 6+ * @file
 7+ */
38
49 /**
510 * Various core link functions, registered in Parser::firstCallInit()
Index: trunk/phase3/includes/parser/ParserCache.php
@@ -1,5 +1,11 @@
22 <?php
33 /**
 4+ * Cache for outputs of the PHP parser
 5+ *
 6+ * @file
 7+ */
 8+
 9+/**
410 * @ingroup Cache Parser
511 * @todo document
612 */
Index: trunk/phase3/includes/parser/DateFormatter.php
@@ -1,4 +1,9 @@
22 <?php
 3+/**
 4+ * Date formatter
 5+ *
 6+ * @file
 7+ */
38
49 /**
510 * Date formatter, recognises dates in plain text and formats them accoding to user preferences.
Index: trunk/phase3/includes/parser/Parser_DiffTest.php
@@ -1,4 +1,9 @@
22 <?php
 3+/**
 4+ * Fake parser that output the difference of two different parsers
 5+ *
 6+ * @file
 7+ */
38
49 /**
510 * @ingroup Parser
Index: trunk/phase3/includes/parser/Preprocessor_DOM.php
@@ -1,8 +1,14 @@
22 <?php
3 -
43 /**
 4+ * Preprocessor using PHP's dom extension
 5+ *
 6+ * @file
57 * @ingroup Parser
68 */
 9+
 10+/**
 11+ * @ingroup Parser
 12+ */
713 class Preprocessor_DOM implements Preprocessor {
814 var $parser, $memoryLimit;
915
Index: trunk/phase3/includes/parser/Preprocessor.php
@@ -1,4 +1,9 @@
22 <?php
 3+/**
 4+ * Interfaces for preprocessors
 5+ *
 6+ * @file
 7+ */
38
49 /**
510 * @ingroup Parser
Index: trunk/phase3/includes/parser/CoreTagHooks.php
@@ -1,5 +1,14 @@
22 <?php
 3+/**
 4+ * Tag hooks provided by MediaWiki core
 5+ *
 6+ * @file
 7+ */
38
 9+/**
 10+ * Various tag hooks, registered in Parser::firstCallInit()
 11+ * @ingroup Parser
 12+ */
413 class CoreTagHooks {
514 static function register( $parser ) {
615 global $wgRawHtml, $wgUseTeX;
Index: trunk/phase3/includes/parser/ParserOptions.php
@@ -1,6 +1,12 @@
22 <?php
3 -
43 /**
 4+ * Options for the PHP parser
 5+ *
 6+ * @file
 7+ * @ingroup Parser
 8+ */
 9+
 10+/**
511 * Set options of the Parser
612 * @todo document
713 * @ingroup Parser

Status & tagging log