respect-validation/library/Respect/Validation/Exceptions/AlnumException.php
Alexandre 4e068bf204 -Messages are now imperative ("foo must be bar") instead of informative ("foo is not bar").
-Several improvements on the messaging system and error reporting, lots of refactored code.
-Validators can now be safely named $val->setName('My Field'), and that name will reflect on the validation message ("My Field must be bla bla bla" instead of "incorrect value" must be bla bla bla)
2011-02-08 20:10:58 -02:00

13 lines
314 B
PHP

<?php
namespace Respect\Validation\Exceptions;
class AlnumException extends AlphaException
{
public static $defaultTemplates = array(
self::STANDARD => '%s must contain only letters (a-z) and digits (0-9)',
self::EXTRA => '%s must contain only letters (a-z), digits (0-9) and "%s"'
);
}