Index: trunk/extensions/Validator/includes/ParameterCriterion.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * Parameter criterion definition class. |
| 5 | + * Parameter criterion base class. |
6 | 6 | * |
7 | 7 | * @since 0.4 |
8 | 8 | * |
Index: trunk/extensions/Validator/includes/Parameter.php |
— | — | @@ -534,6 +534,8 @@ |
535 | 535 | */ |
536 | 536 | protected function getCriteriaForType() { |
537 | 537 | $criteria = array(); |
| 538 | + |
| 539 | + // TODO: also have similar auto-adding of manipulations |
538 | 540 | |
539 | 541 | switch( $this->type ) { |
540 | 542 | case self::TYPE_INTEGER: |
Index: trunk/extensions/Validator/Validator.php |
— | — | @@ -55,14 +55,17 @@ |
56 | 56 | $incDir = dirname( __FILE__ ) . '/includes/'; |
57 | 57 | $wgAutoloadClasses['CriterionValidationResult'] = $incDir . 'CriterionValidationResult.php'; |
58 | 58 | $wgAutoloadClasses['ItemParameterCriterion'] = $incDir . 'ItemParameterCriterion.php'; |
| 59 | +$wgAutoloadClasses['ItemParameterManipulation'] = $incDir . 'ItemParameterManipulation.php'; |
59 | 60 | $wgAutoloadClasses['ListParameter'] = $incDir . 'ListParameter.php'; |
60 | 61 | $wgAutoloadClasses['ListParameterCriterion'] = $incDir . 'ListParameterCriterion.php'; |
| 62 | +$wgAutoloadClasses['ListParameterManipulation'] = $incDir . 'ListParameterManipulation.php'; |
61 | 63 | $wgAutoloadClasses['Parameter'] = $incDir . 'Parameter.php'; |
62 | 64 | $wgAutoloadClasses['ParameterCriterion'] = $incDir . 'ParameterCriterion.php'; |
| 65 | +$wgAutoloadClasses['ParameterManipulation'] = $incDir . 'ParameterManipulation.php'; |
63 | 66 | $wgAutoloadClasses['ParserHook'] = $incDir . 'ParserHook.php'; |
64 | 67 | $wgAutoloadClasses['Validator'] = $incDir . 'Validator.php'; |
65 | 68 | $wgAutoloadClasses['TopologicalSort'] = $incDir . 'TopologicalSort.php'; |
66 | | -$wgAutoloadClasses['ValidationFormats'] = $incDir . 'ValidationFormats.php'; |
| 69 | +$wgAutoloadClasses['ValidationFormats'] = $incDir . 'ValidationFormats.php'; // TODO: remove |
67 | 70 | $wgAutoloadClasses['ValidationError'] = $incDir . 'ValidationError.php'; |
68 | 71 | $wgAutoloadClasses['ValidationErrorHandler'] = $incDir . 'ValidationErrorHandler.php'; |
69 | 72 | |