Index: trunk/extensions/Validator/Validator.class.php |
— | — | @@ -21,7 +21,6 @@ |
22 | 22 | * @author Jeroen De Dauw |
23 | 23 | * |
24 | 24 | * TODO: break on fatal errors, such as missing required parameters that are dependencies |
25 | | - * |
26 | 25 | * TODO: correct invalid parameters in the main loop, as to have correct dependency handling |
27 | 26 | */ |
28 | 27 | final class Validator { |
Index: trunk/extensions/Validator/Validator_Manager.php |
— | — | @@ -21,7 +21,6 @@ |
22 | 22 | * @author Jeroen De Dauw |
23 | 23 | * |
24 | 24 | * FIXME: missing required params should result in a no-go, no matter of the error level, as they can/are not defaulted. |
25 | | - * |
26 | 25 | * TODO: make a distinction between fatal errors and regular errors by using 2 seperate error levels. |
27 | 26 | */ |
28 | 27 | final class ValidatorManager { |
Index: trunk/extensions/Validator/Validator_Formats.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | | - * Ensures the value is an array. |
| 37 | + * Returns an array containing only the specified values. |
38 | 38 | * |
39 | 39 | * @param $value |
40 | 40 | * @param string name The name of the parameter. |
Index: trunk/extensions/Validator/Validator.i18n.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | */ |
18 | 18 | $messages['en'] = array( |
19 | 19 | 'validator_name' => 'Validator', |
20 | | - 'validator-desc' => 'Validator provides an easy way for other extensions to validate parameters of parser functions and tag extensions, set default values and generate error messages', |
| 20 | + 'validator-desc' => 'Validator is a MediaWiki extension that provides generic parameter handling support to other extensions', |
21 | 21 | |
22 | 22 | 'validator_error_parameters' => 'The following {{PLURAL:$1|error has|errors have}} been detected in your syntax:', |
23 | 23 | 'validator_warning_parameters' => 'There {{PLURAL:$1|is an error|are errors}} in your syntax.', |
Index: trunk/extensions/Validator/Validator.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | die( 'Not an entry point.' ); |
26 | 26 | } |
27 | 27 | |
28 | | -define( 'Validator_VERSION', '0.3 rc2' ); |
| 28 | +define( 'Validator_VERSION', '0.3' ); |
29 | 29 | |
30 | 30 | // Constants indicating the strictness of the parameter validation. |
31 | 31 | define( 'Validator_ERRORS_NONE', 0 ); |