This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/includes/kohana/system/messages/validation.php

28 lines
1.4 KiB
PHP
Raw Normal View History

2010-08-21 04:43:03 +00:00
<?php defined('SYSPATH') or die('No direct script access.');
return array(
'alpha' => ':field must contain only letters',
2011-05-13 06:00:25 +00:00
'alpha_dash' => ':field must contain only numbers, letters and dashes',
2010-08-21 04:43:03 +00:00
'alpha_numeric' => ':field must contain only letters and numbers',
'color' => ':field must be a color',
'credit_card' => ':field must be a credit card number',
'date' => ':field must be a date',
2011-05-13 06:00:25 +00:00
'decimal' => ':field must be a decimal with :param2 places',
2010-08-21 04:43:03 +00:00
'digit' => ':field must be a digit',
'email' => ':field must be a email address',
'email_domain' => ':field must contain a valid email domain',
2011-05-13 06:00:25 +00:00
'equals' => ':field must equal :param2',
'exact_length' => ':field must be exactly :param2 characters long',
2010-08-21 04:43:03 +00:00
'in_array' => ':field must be one of the available options',
'ip' => ':field must be an ip address',
2011-05-13 06:00:25 +00:00
'matches' => ':field must be the same as :param2',
'min_length' => ':field must be at least :param2 characters long',
'max_length' => ':field must not exceed :param2 characters long',
2010-08-21 04:43:03 +00:00
'not_empty' => ':field must not be empty',
2011-05-13 06:00:25 +00:00
'numeric' => ':field must be numeric',
'phone' => ':field must be a phone number',
'range' => ':field must be within the range of :param2 to :param3',
2010-08-21 04:43:03 +00:00
'regex' => ':field does not match the required format',
'url' => ':field must be a url',
2011-05-13 06:00:25 +00:00
);