Bug #1092

MVC - Arguments Validation on Arrays / MVC Validation

Added by Daniel Poetzinger over 13 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-07-20
Due date:
% Done:

100%

Estimated time:
0.00 h
PHP Version:
Has patch:
Complexity:

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.

#1

Updated by Robert Lemke over 13 years ago

  • Status changed from New to Accepted
  • Assignee 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 over 13 years ago

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

Applied in changeset r1123.

Also available in: Atom PDF