r71861 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71860‎ | r71861 | r71862 >
Date:19:09, 28 August 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Added some docs
Modified paths:
  • /trunk/extensions/Validator/ParserHook.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Validator/ParserHook.php
@@ -1,5 +1,16 @@
22 <?php
33
 4+/**
 5+ * Class for out of the box parser hook functionality inetgrated with the validation
 6+ * provided by Validator.
 7+ *
 8+ * @since 0.4
 9+ *
 10+ * @file ParserHook.php
 11+ * @ingroup Validator
 12+ *
 13+ * @author Jeroen De Dauw
 14+ */
415 abstract class ParserHook {
516
617 /**
@@ -129,6 +140,14 @@
130141 return $output;
131142 }
132143
 144+ /**
 145+ * Handles any errors that occured. Messages that should be added the the regular
 146+ * output are returned.
 147+ *
 148+ * @param ValidatorManager $manager
 149+ *
 150+ * @return string
 151+ */
133152 protected function handleErrors( ValidatorManager $manager ) {
134153 $errorList = $manager->getErrorList();
135154

Status & tagging log