Bug #1092

MVC - Arguments Validation on Arrays / MVC Validation

Added by Daniel Poetzinger about 7 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2008-07-20
Priority:Should have Due date:
Assigned To:Robert Lemke % Done:

100%

Category:-
Target version:- Estimated time:0.00 hour
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

Currently no filter to validate an Array (e.g. a serialized form with a certain namespace)

in the current concept something like register the argument in the controller like this would be good:

$this->arguments->addNewArgument('searchFilter','RecursiveTextArray');

or I also would like something like
$this->arguments->addNewArgument('searchFilter','NoValidation');

also

$this->arguments->addNewArgument('searchFilter',''); throws currently a unfetched fatal error.

Associated revisions

Revision 3cd09180
Added by Robert Lemke almost 7 years ago

  • FLOW3: (Validation) Added a "raw" validator which accepts just everything. Resolves #1092

History

#1 Updated by Robert Lemke almost 7 years ago

  • Status changed from New to Accepted
  • Assigned To set to Robert Lemke

I think that "RecursiveTextArray" is to special to be implemented in the FLOW3 package itself. What about UnrecursiveIntegerArray etc.?
In my opinion you better solve that by chaining existing validators or writing a small validator yourself.

I'll implement the no validation validator though.

#2 Updated by Robert Lemke almost 7 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1123.

Also available in: Atom PDF