mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 12:38:44 +02:00
N°6414 Validator refactoring
New AbstractValidator class, with new method Validate All existing validators are now children of AbstractRegexpValidator Handle validators JS counterparts in renderers : only regexp validators are implemented client side
This commit is contained in:
@@ -24,10 +24,9 @@ namespace Combodo\iTop\Form\Validator;
|
||||
*
|
||||
* @author Guillaume Lajarige <guillaume.lajarige@combodo.com>
|
||||
*/
|
||||
class IntegerValidator extends Validator
|
||||
class IntegerValidator extends AbstractRegexpValidator
|
||||
{
|
||||
const VALIDATOR_NAME = 'integer';
|
||||
const DEFAULT_REGEXP = '^[0-9]+$';
|
||||
const DEFAULT_ERROR_MESSAGE = 'Core:Validator:MustBeInteger';
|
||||
|
||||
public const VALIDATOR_NAME = 'integer';
|
||||
public const DEFAULT_REGEXP = '^[0-9]+$';
|
||||
public const DEFAULT_ERROR_MESSAGE = 'Core:Validator:MustBeInteger';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user