Index: trunk/extensions/Validator/Validator_Manager.php |
— | — | @@ -25,10 +25,13 @@ |
26 | 26 | */ |
27 | 27 | final class ValidatorManager { |
28 | 28 | |
| 29 | + /** |
| 30 | + * @var Validator |
| 31 | + */ |
29 | 32 | private $validator; |
30 | 33 | |
31 | 34 | /** |
32 | | - * Validates the provided parameters, and corrects them depending on the error level. |
| 35 | + * Parses and validates the provided parameters, and corrects them depending on the error level. |
33 | 36 | * |
34 | 37 | * @param array $rawParameters The raw parameters, as provided by the user. |
35 | 38 | * @param array $parameterInfo Array containing the parameter definitions, which are needed for validation and defaulting. |
— | — | @@ -51,6 +54,14 @@ |
52 | 55 | return !$this->validator->hasFatalError(); |
53 | 56 | } |
54 | 57 | |
| 58 | + /** |
| 59 | + * Validates the provided parameters, and corrects them depending on the error level. |
| 60 | + * |
| 61 | + * @since 3.x |
| 62 | + * |
| 63 | + * @param $parameters Array |
| 64 | + * @param $parameterInfo Array |
| 65 | + */ |
55 | 66 | public function manageParsedParameters( array $parameters, array $parameterInfo ) { |
56 | 67 | global $egValidatorErrorLevel; |
57 | 68 | |
— | — | @@ -69,6 +80,8 @@ |
70 | 81 | /** |
71 | 82 | * Returns an array with the valid parameters. |
72 | 83 | * |
| 84 | + * @since 3.x |
| 85 | + * |
73 | 86 | * @param boolean $includeMetaData |
74 | 87 | * |
75 | 88 | * @return array |
— | — | @@ -173,4 +186,5 @@ |
174 | 187 | return ''; |
175 | 188 | } |
176 | 189 | } |
| 190 | + |
177 | 191 | } |
\ No newline at end of file |
Index: trunk/extensions/Validator/Validator.php |
— | — | @@ -28,6 +28,7 @@ |
29 | 29 | |
30 | 30 | // Constants indicating the strictness of the parameter validation. |
31 | 31 | define( 'Validator_ERRORS_NONE', 0 ); |
| 32 | +define( 'Validator_ERRORS_LOG', 1 ); |
32 | 33 | define( 'Validator_ERRORS_WARN', 2 ); |
33 | 34 | define( 'Validator_ERRORS_SHOW', 3 ); |
34 | 35 | define( 'Validator_ERRORS_STRICT', 4 ); |