Directory Classes/Validation/

Directory Deleted:
2010-08-24 10:42
Total Files:
0
Deleted Files:
17
Lines of Code:
0

[root]/Classes/Validation
            Folder removed from repo Exception (0 files, 0 lines)
            Folder removed from repo Filter (0 files, 0 lines)
            Folder removed from repo Validator (0 files, 0 lines)

Lines of Code

Classes/Validation/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 138 (100.0%) 1144 (100.0%) 8.2
k-fish 96 (69.6%) 550 (48.1%) 5.7
robert 30 (21.7%) 359 (31.4%) 11.9
networkteam_hlubek 3 (2.2%) 129 (11.3%) 43.0
sebastian 2 (1.4%) 88 (7.7%) 44.0
bwaidelich 1 (0.7%) 16 (1.4%) 16.0
andi 6 (4.3%) 2 (0.2%) 0.3

Most Recent Commits

k-fish 2010-08-24 10:42 Rev.: 5057

Removed everything in trunk after move to git.

0 lines of code changed in 17 files:

  • Classes/Validation: AbstractValidator.php (del), Error.php (del), Errors.php (del), Exception.php (del), F3_FLOW3_Validation_AbstractValidator.php (del), F3_FLOW3_Validation_Error.php (del), F3_FLOW3_Validation_Errors.php (del), F3_FLOW3_Validation_Exception.php (del), F3_FLOW3_Validation_FilterInterface.php (del), F3_FLOW3_Validation_ObjectValidatorInterface.php (del), F3_FLOW3_Validation_ValidatorInterface.php (del), F3_FLOW3_Validation_ValidatorResolver.php (del), FilterInterface.php (del), ObjectValidatorInterface.php (del), PropertyError.php (del), ValidatorInterface.php (del), ValidatorResolver.php (del)
k-fish 2010-08-16 14:07 Rev.: 4988

[+TASK] FLOW3 (Validation): The ValidatorResolver now throws a helpful exception when encountering missing @param annotations.

4 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+4)
k-fish 2010-08-13 16:21 Rev.: 4969

[-TASK] FLOW3: Removed @version keyword from files, resolves #8835.

0 lines of code changed in 4 files:

  • Classes/Validation: Error.php (-1), Exception.php (-1), PropertyError.php (-1), ValidatorResolver.php (-1)
robert 2010-04-09 16:49 Rev.: 4044

[+BUGFIX] FLOW3 (Object): Fixed regression introduced in last commit (Object Container isRegistered())

9 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+9 -5)
robert 2010-03-25 17:49 Rev.: 4013

[+FEATURE] FLOW3 (Validation): The @validate annotations in action methods now support an object accessor syntax ($argument.subobject.subsubobject) for declaring additional validation rules referring to a property of a nested object. Resolves #6993
[~TASK] FLOW3 (Validation): Brushed up and unified the messages of most validators.
[~TASK] FLOW3 (Error): The var_dump method now also filters PHPUnit Invocation Mokers.

36 lines of code changed in 2 files:

  • Classes/Validation: PropertyError.php (+1 -1), ValidatorResolver.php (+35 -9)
robert 2010-03-24 19:52 Rev.: 4012

[~FEATuRE] FLOW3 (Error): Adjusted the class name filter of the var_dump method, so that Request and Response for example are still displayed.
[+BUGFIX] FLOW3 (Validation): The Validator Resolver now correctly handles fully qualified class names with a leading backslash specified in annotations. Fixes #6992 (boy, that was hard to find ...)

23 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+23 -19)
robert 2010-03-17 11:30 Rev.: 3973

[+BUGFIX] FLOW3 (Object): The object serializer now serializes only the properties of the target class if the given object is proxied.
[+BUGIFX] FLOW3 (Property): The property mapper now handles optional constructor arguments of target objects correctly.
[+BUGFIX] FLOW3 (Validation): The Generic Object Validator now also accepts NULL as a valid value.
[+BUGFIX] FLOW3 (Validation): The Validator Resolver now correctly builds validator conjunctions even recursively for properties of the given data type.

12 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+12 -3)
robert 2010-02-22 16:17 Rev.: 3837

[+FEATURE] FLOW3 (Object): Implemented a static object container which is automatically built. It's essentially a hardcoded version of the autowired and configured object dependencies - just a lot faster. Many tests are still missing, but the version in this commit should be mostly functional. Addresses #3740 and resolves #2123.
[!!!][~API] FLOW3 (Object): Heavily refactored the Object Manager and its tests. The most important change is the removal of the Object Factory whose create() method is now located in the Object Manager. Furthermore, the getObject() method has been renamed to get() and a few minor important API functions within the Object Manager have been modified. This commit also contains a script which allows for semi automatically migrating existing code to the new API (see ./flow3 migrate objectmanagerusage). Resolves #6562
[~TASK] FLOW3 (Configuration): The Configuration Manager and its YAML source now doesn't depend on the YAML package anymore but refers to a YAML parser class within the FLOW3 package. Resolves #6564.

4 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+4 -4)
robert 2010-01-15 15:38 Rev.: 3643

[~TASK] FLOW3 (Documentation): Updated the Coding Guidelines: removed inconsistent exceptions from the general class naming rules. Also added the rule that names of aspect classes must end with "Aspect". Relates to #5658
[~TASK] Global: Renamed many classes and interfaces in order to be consistent with FLOW3's naming rules. A migration script to update third-party applications will follow soon. Resolves #5658

9 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+9 -9)
k-fish 2009-12-10 16:06 Rev.: 3544

[~TASK] FLOW3 (Cache): Renamed the DDL file for the PDO cache backend.
[~TASK] FLOW3 (Object): fixed tiny typo in an exception message.
[~TASK] FLOW3 (Reflection): class schemata accept bool, int and double aliases now, normalize also types in collections.
[~TASK] FLOW3 (Validation): some (non-functional) renaming inside.

11 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+11 -11)
k-fish 2009-11-30 15:53 Rev.: 3523

[~TASK] FLOW3: Fixed some @param annotations.

2 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+2)
k-fish 2009-11-17 22:22 Rev.: 3472

[~TASK] FLOW3 (Validation): Tiny (non-functional) fix to method documentation.

2 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+2 -2)
k-fish 2009-11-02 13:30 Rev.: 3387

[+BUGFIX] FLOW3 (Validation): @validate annotations with complex options are parsed correctly now, fixes #5185.

51 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+51 -40)
k-fish 2009-10-30 16:48 Rev.: 3386

[+BUGFIX] FLOW3 (Validation): Multiple validators with option can now be specified in @validate, fixes #5047.

1 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+1 -1)
k-fish 2009-10-22 18:22 Rev.: 3345

[~TASK] FLOW3: Added @api annotations on class level and adjusted CGL to explain class-level @api handling.

2 lines of code changed in 2 files:

  • Classes/Validation: Exception.php (+1), PropertyError.php (+1)
k-fish 2009-10-02 12:36 Rev.: 3288

[+BUGFIX] FLOW3 (Validation): ValidatorResolver no longer tries to use action method argument data type as validator type, fixes #4857. Optimized a little.

24 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+24 -11)
k-fish 2009-09-17 14:09 Rev.: 3196

[~TASK] FLOW3 (MVC): removed Text as default data type for Controller\Argument

4 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+4 -3)
sebastian 2009-09-17 10:57 Rev.: 3192

[-API] FLOW3 (MVC): Removed enableValidation() and disableValidation() on the Controller Argument. They are not needed anymore.
[!!!][+BUGFIX] FLOW3 (MVC): Now, in case people do not specify an @param annotation, they will get an exception instead of Text being used.
[+BUGFIX] FLOW3 (MVC): Cleaned up validator registration in ActionController. Now, @dontvalidate annotations only disable the model-based validators.
[+BUGFIX] FLOW3 (Validation): Cleaned up ValidatorResolver. Now, Validators which check the data type from the @param annotation are also added to the validator chain.
[!!!][+BUGFIX] FLOW3 (Validation): @param string is now validated as string, and not anymore as Text. This fixes numerous bug reports in Fluid.

34 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+34 -14)
k-fish 2009-09-16 14:36 Rev.: 3189

[~TASK] FLOW3: Fixed method parameter documentation found by new reflection service checks.
[+FEATURE] FLOW3 (Persistence): added removeAll() to base repository, resolves #3852.

1 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+1 -1)
k-fish 2009-08-24 15:18 Rev.: 3094

[~TASK] FLOW3: fixed method declarations to include abstract/static before visibility modifier, tiny documentation fix
[~TASK] Testing: fixed method declarations to include abstract/static before visibility modifier, tiny documentation fix

1 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+1 -1)
robert 2009-08-06 10:40 Rev.: 2989

[+FEATURE] FLOW3 (MVC): It is now possible to disable validation temporarily for single controller arguments. This is necessary in situations where a knowingly incomplete / invalid argument needs to be passed to an action, for example an edit action. Validation can be disabled either by calling the disableValidation() method on the argument object or by adding a @dontvalidate $argumentName annotation to an action method. Resolves #4166
[+TASK] FLOW3 (Documentation): Documented the new @dontvalidate annotation.
[+FEATURE] FLOW3 (Package): The package manager's command line controller now returns a friendly error message on trying to activate or deactivate an already active or inactive package. Earlier it just threw an unpolished exception.
[+FEATURE] FLOW3 (Persistence): Implemented an update() method for the base repository which allows for conveniently updating existing objects. update() only expects one argument which must be a clone of the object to replace, already containing the modifications. The object passed to update() must internally contain the same uuid like the object to be updated (ie. replaced). In fact this new update() method is basically a more convenient way to call replace(). Resolves #4167
[+BUGFIX] FLOW3 (MVC): A @validate annotation placed in an action method's comment replaced existing rules instead of adding them to a common conjunction validator. By this it was possible to override any validation rule with a simple @validate $foo Raw annotation. Fixes #4168

6 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+6 -6)
robert 2009-07-24 16:34 Rev.: 2885

[~BUGFIX] FLOW3 (Validation): The ValidatorResolver test case failed - but only if the Blog package was installed. This was due to some Blog model being used by a data provider which in reality should have been a sample, not existing class. Fixed that.
[~TASK] FLOW3 (Validation): The TextValidator was too restrictive because it did not allow line breaks and other common characters - now it does. However, it's not really secure yet. Relates to #3977
[+BUGFIX] Fluid (Core): Added some safe guard and aception to the Abstract Node which would exit with a fatal error in some cases.

3 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+3 -1)
robert 2009-07-23 12:39 Rev.: 2867

[+FEAT] FLOW3 (MVC): The format of a request may now contain any character which allows to specify formats like "rss.xml" or "foo.bar.baz.html" instead of just "xml".
[~TASK] FLOW3 (Validation): Fixed an exception message in the Validator Resolver.
[+FEAT] Fluid (View): While resolving the path and file name of a template, Fluid now takes the request's format into account. By default it is ".html" and now others, like ".xml" or even ".rss.xml" are possible.
[+FEAT] Fluid (ViewHelper): The Action View Helper and the URI Builder now support rendering of absolute URIs. This comes in handy if you need an URI pointing to your feed or the like. Absolute URIs can be generated by specifying the "absolute" property: <f:link.action action="index" controller="Post" absolute="TRUE" />...

1 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+1 -1)
k-fish 2009-07-16 15:02 Rev.: 2813

[+TASK] FLOW3: Removed file level docblocks and @package/@subpackage annotations.
[+TASK] Fluid: Removed file level docblocks and @package/@subpackage annotations.
[+TASK] Kickstart: Removed file level docblocks and @package/@subpackage annotations.
[+TASK] PHP6: Removed file level docblocks and @package/@subpackage annotations.
[+TASK] PHPUnit: Removed file level docblocks and @package/@subpackage annotations.
[+TASK] Testing: Removed file level docblocks and @package/@subpackage annotations.
[+TASK] Welcome: Removed file level docblocks and @package/@subpackage annotations.
[+TASK] YAML: Removed file level docblocks and @package/@subpackage annotations.

0 lines of code changed in 4 files:

  • Classes/Validation: Error.php (-8), Exception.php (-8), PropertyError.php (-8), ValidatorResolver.php (-8)
k-fish 2009-07-15 12:28 Rev.: 2794

[TASK] FLOW3: moved from @internal to @api, resolves #3883

4 lines of code changed in 2 files:

  • Classes/Validation: PropertyError.php (+4), ValidatorResolver.php (-11)
k-fish 2009-06-30 08:58 Rev.: 2671

[TASK] FLOW3 (Validation): Refactored ValidatorResolver to have less code duplication.

62 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+62 -62)
networkteam_hlubek 2009-06-29 18:56 Rev.: 2658

[FIX] FLOW3 (Validation): ValidatorResolver now accepts namespaced class names in validator annotations. This enables custom validator classes and fixes #3801

2 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+2 -2)
k-fish 2009-06-29 14:10 Rev.: 2657

[FIX] FLOW3 (Validation): ValidatorResolver can now parse validator arguments containing round brackets, commas, equal signs, fixes #3275. The option values must be quoted for this to work (either single or double quotes will do).

90 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+90 -20)
k-fish 2009-06-04 22:02 Rev.: 2568

?[!!!] FLOW3: New conventions for naming of Domain Models and Repositories in place, resolves #3507

2 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+2 -1)
k-fish 2009-06-02 11:35 Rev.: 2523

Added svn:keywords where missing...

2 lines of code changed in 1 file:

  • Classes/Validation: PropertyError.php (+2 -2)
robert 2009-05-26 10:37 Rev.: 2386

* FLOW3: Simplified the default routes configuration: the distribution now comes with only two route entries, one for TYPO3CR and one for FLOW3.
* FLOW3: (Security) Fixed the Login View which didn't work since the introduction of the Controller Context
* FLOW3: (Validation) Made the Property Error messages more readable
* TYPO3CR: (Admin) Fixed the NodesController which accessed the wrong session (the PHP Session instead of the PHPCR session) and resulted in single objects not being displayed in the admin tool. The reason for this bug is that we introduced $this->session in the AbstractController.

2 lines of code changed in 1 file:

  • Classes/Validation: PropertyError.php (+2 -3)
k-fish 2009-05-25 12:10 Rev.: 2363

FLOW3:
* some whitespace paranoia^Wcleanup
* removed a use statement
* (re-)introduced some inject methods - in FLOW3 itself we do not use @inject

8 lines of code changed in 1 file:

  • Classes/Validation: PropertyError.php (+8 -7)
networkteam_hlubek 2009-05-22 16:48 Rev.: 2342

Object validation: Introduced PropertyError for nested errors and changed property mapper and mapping results. Resolves #3401

104 lines of code changed in 1 file:

  • Classes/Validation: PropertyError.php (new 104)
robert 2009-05-20 19:14 Rev.: 2293

* FLOW3: Marked all methods as @internal except those which are considered part of the official API. Resolves #1280
* TYPO3CR: Fixed two tests of the Storage\PDO\Search testcase.

7 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+7 -1)
networkteam_hlubek 2009-05-12 19:44 Rev.: 2203

Refactored ChainValidator to ConjunctionValidator and changed behaviour to validate all nested validators

23 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+23 -23)
robert 2009-04-30 16:15 Rev.: 2185

This commit is all about validation. Although the new features basically work, a few smaller features and tweak are missing before the whole concept works as intended. Documentation will follow (hopefully soon).

* FLOW3: (Validation) Implemented annotation based validation for models. That means you now can define validation rules by adding @validate annotations to class properties and these rules will be enforced when arguments of this type are passed as controller arguments. Resolves #3093 but some fine tuning and small additional features are missing.
* FLOW3: (Validation) Note that #3130 is not solved yet in this commit.
* FLOW3: (MVC) Implemented a MVC Controller Arguments Validator which is able to validate a whole Arguments object. This is used during the mapAndValidate process in the controller. Addresses #3093.
* FLOW3: (Property) The property mapper now accepts arrays as source and / or target.
* FLOW3: (Property) mapAndValidate() will now truly validate the result of the mapping. If the result does not validate, the target remains unchanged.
* FLOW3: (Validation) Removed the Filter Chain for now - it will surely come back but didn't work like it was currently implemented.
* FLOW3: (Validation) Improved the AbstractValidator and added a new AbstractObjectValidator
* FLOW3: (Validation) Adapted all validators to the new Validator interface and AbstractValidator
* FLOW3: (Validation) Implemented a new Generic Object validator which can validate properties of any object
* FLOW3: (Validation) Simplified the chaining of validators and during that process removed the ObjectValidatorChainValidator
* FLOW3: Added and adapted many tests

142 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+142 -2)
robert 2009-04-22 16:03 Rev.: 2175

* FLOW3: Raised required PHP version to 5.3.0RC1
* FLOW3: (Error) The \F3\FLOW3\Error\Error class now supports __toString()
* FLOW3: (MVC) Finished implementation of validation rules in the action methods. Now these rules are actually enforced. Now really resolves #3092.
* FLOW3: (MVC) The ActionController now checks if it can process the request ? didn't do that before. Fixes #3121.
* FLOW3: (Property) The property mapper's mapAndValidate() method now actually validates the source.
* FLOW3: (Reflection) The Reflection Service now detects class file changes again. (Problem was that the settings were not injected anymore because autowiring was turned off for the Reflection Service in the Objects.yaml) Fixes #3152.
* FLOW3: (Validation) Removed the Validation\Errors class - now a simple array is used instead.
* FLOW3: (Validation) Removed the $errors argument from FilterInterface::filter(). More changes to this interface will follow.
* FLOW3: (Validation) Validation options must be set with the new setOptions() method instead of passing them to the isValid() method.
* FLOW3: (Validation) The errors array is not passed to the isValid() method of a validator anymore - instead it can be retrieved by a new getErrors() method which is defined in the ValidatorInterface.
* FLOW3: (Validation) Validators may now be singleton or prototype. Marked all those validators as prototype which require options and let others be singletons.
* FLOW3: (Validation) Removed the public resolveValidatorClassName() method from the ValidatorResolver class.
* FLOW3: (Validation) !!! changed the option names of the StringLength validator: now they are "minimum" and "maximum"
* FLOW3: (Validation) Changed the ObjectValidatorInterface: canValidateType() is now canValidate() and asks for an objects instead of a class name.
* FLOW3: (Validation) The first argument of the Validator Resolver's createMethodValidator() has changed: Now either the short name or a fully qualified object name of a _validator_ is expected (instead of the data type)! Maybe also addresses #3130.
* FLOW3: (Documentation) Added a few lines of documentation and an example for the validation rules feature. More to come.

* Fluid: (Core) Fixed a test which was referring to the \F3\FLOW3\Validation\Errors class.

23 lines of code changed in 2 files:

  • Classes/Validation: FilterInterface.php (+1 -1), ValidatorResolver.php (+22 -29)
bwaidelich 2009-04-21 21:16 Rev.: 2171

* FLOW3: (Validation) added more types to unifyDataType() in ValidationResolver. Additionally passed dataType through ucfirst() in order to find matching Validators for @param types (which are lower case by default)
arguments of type "mixed" will be passed to RawValidator now - this might need to be revised, I'm committing this anyways as these changes are needed for the upcoming Fluid-commit.
Relates to #3130

16 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+16 -7)
robert 2009-04-16 07:22 Rev.: 2159

* FLOW3: (MVC) Implemented the automatic validation rule registration based on @validate annotations in action methods. Note that validators are registered now but validation still does not happen (yet). Resolves #3092
* FLOW3: (Validation) Modified the API of the ValidatorResolver

9 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+9 -9)
sebastian 2009-03-24 15:01 Rev.: 2036

FLOW3:
* Validation: Rewrote the ValidatorResolver, and removed the NoValidatorFound exception
* Reflection: when calling Reflection\Service->getMethodParameters(), a "type" is returned, taken from the PHPDoc comment above
* MVC: Controller\ActionController: Refactored to use the new ReflectionService

54 lines of code changed in 1 file:

  • Classes/Validation: ValidatorResolver.php (+54 -21)

(16 more)

Generated by StatSVN 0.5.0