Index: trunk/extensions/Validator/ParserHook.php |
— | — | @@ -1,5 +1,16 @@ |
2 | 2 | <?php |
3 | 3 | |
| 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 | + */ |
4 | 15 | abstract class ParserHook { |
5 | 16 | |
6 | 17 | /** |
— | — | @@ -129,6 +140,14 @@ |
130 | 141 | return $output; |
131 | 142 | } |
132 | 143 | |
| 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 | + */ |
133 | 152 | protected function handleErrors( ValidatorManager $manager ) { |
134 | 153 | $errorList = $manager->getErrorList(); |
135 | 154 | |