mirror of
https://github.com/Respect/Validation.git
synced 2024-06-27 01:30:05 +02:00
895ce93ed1
- Changed the string formater from sprintf to custom function. Exception parameters should be more readable now. - Several refactorings on the exception reporting model - Improved builders ( new v(array('int', 'positive', 'between'=>array(1,256))); is now possible, great for dependency injection. Note: There are nasty things on this commit. Duplicated code, orphan methods and such. Next step is a nice quality-wide refactoring.
14 lines
344 B
PHP
14 lines
344 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class AlnumException extends AlphaException
|
|
{
|
|
|
|
public static $defaultTemplates = array(
|
|
self::STANDARD => '{{name}} must contain only letters (a-z) and digits (0-9)',
|
|
self::EXTRA => '{{name}} must contain only letters (a-z), digits (0-9) and "{{additionalChars}}"'
|
|
);
|
|
|
|
}
|