Project

General

Profile

Actions

Feature #52231

open

Add new validator for equality between two values

Added by Clément MICHELET almost 11 years ago. Updated over 6 years ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

It should be usefull to add new core validators to allow equality between two values.

For example, in password or email confirmation, we need to compare two values (or property values).

We could make an EqualValidator

EqualValidator test if $value is equal to arguments 'value'. An argument 'strict' could allow strict type comparison.

If setted in a domain object, $value is the domain object and 'property' must be setted.

My note :
For the EqualValidator, $value should be the property value to check (e.g : Password confirm property) not the domain object and to be tested on arguments property (e.g : Password).


Files

EqualValidator.php (1.35 KB) EqualValidator.php Clément MICHELET, 2013-09-25 10:25
PropertiesEqualValidator.php (4.73 KB) PropertiesEqualValidator.php André Wuttig, 2014-09-02 12:56
PropertyCompareValidator.php (6.31 KB) PropertyCompareValidator.php André Wuttig, 2017-04-13 15:56
Actions

Also available in: Atom PDF