mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +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 NotEmptyExtKeyValidator extends Validator
|
||||
class NotEmptyExtKeyValidator extends MandatoryValidator
|
||||
{
|
||||
const VALIDATOR_NAME = 'notemptyextkey';
|
||||
const DEFAULT_REGEXP = '^[0-9]*[1-9][0-9]*$';
|
||||
const DEFAULT_ERROR_MESSAGE = 'Core:Validator:MustSelectOne';
|
||||
|
||||
public const VALIDATOR_NAME = 'notemptyextkey';
|
||||
public const DEFAULT_REGEXP = '^[0-9]*[1-9][0-9]*$';
|
||||
public const DEFAULT_ERROR_MESSAGE = 'Core:Validator:MustSelectOne';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user