276 Commits

Author SHA1 Message Date
Vance Lucas
2c8e918ced Merge pull request #146 from vanpattenmedia/fields_param_in_rule_callback
Pass fields to callbacks defined in addRule
2016-01-15 13:53:20 -06:00
Vance Lucas
1bef76d58e Merge pull request #120 from Nicat/patch-1
az.php
2016-01-15 13:51:27 -06:00
Vance Lucas
321e8ce69e Merge pull request #147 from tuncayuner/language/turkish
Added Turkish language.
2016-01-15 13:51:11 -06:00
Vance Lucas
7928afcc72 Merge pull request #145 from studiowbe/nl
Dutch translations
2016-01-15 13:50:49 -06:00
tuncayuner
35693dea0a Added Turkish language. 2016-01-11 18:59:46 +02:00
Chris Van Patten
920fefc05a update README to include $fields callback param in code example 2016-01-05 09:57:16 -05:00
Chris Van Patten
3ee508987e Pass $this->_fields to callbacks defined in addRule 2016-01-05 09:48:23 -05:00
Willem Wollebrants
1313fbd632 Add Dutch labels (nl) 2016-01-05 14:56:34 +01:00
Vance Lucas
d2b63c6119 Add 'composer test' as a run script v1.2.4 2015-12-15 14:10:29 -06:00
Vance Lucas
46acc7aa56 Merge pull request #141 from yeesoft/master
Adds Ukrainian language
2015-12-07 18:33:00 -06:00
YeeSoft
94048a95d5 Adds Ukrainian language 2015-12-04 20:31:29 +02:00
Tilen Majerle
708235e0e4 Merge pull request #1 from MaJerle/MaJerle-validate-optional-1
Added "optional" rule validation
2015-11-30 22:23:47 +01:00
Tilen Majerle
0d77529c90 Added "optional" rule validation
With 'optional' rule validation, values does not need to be included in data array.
However, if they are, they must pass validation.

Before this patch, if you pass data with empty ( '' ) value, then it is ignored if "required" was not added.
With this version, this is now fixed.

Text case available here: http://pastebin.com/N2eQjJys
2015-11-30 22:23:21 +01:00
Vance Lucas
a06309ce75 Merge pull request #137 from zonuexe/feature/deny_array
type check
2015-11-24 11:20:47 -06:00
USAMI Kenta
96221ea4d3 Add type check for between comparison
Return 0 if $value is not numeric value
2015-11-20 16:57:15 +09:00
USAMI Kenta
28254e76c2 Add type check for stringLength
Return 0 if $value is not string
2015-11-20 16:55:56 +09:00
USAMI Kenta
29c7d35db6 Add test code for Validator::error() 2015-11-20 16:55:56 +09:00
Vance Lucas
3ab56a285d Merge pull request #135 from laverboy/patch-1
made length message more accurate fixes #127
2015-11-09 13:55:45 -06:00
Matthew Laver
8bc6de6b9e made length message more accurate fixes #127 2015-11-09 12:50:36 +00:00
Vance Lucas
8cfa3bd932 Merge pull request #133 from veganista/translation/ro
Adds Romanian language
2015-10-20 21:43:17 -05:00
Vance Lucas
9f9701833c Merge pull request #134 from veganista/translation/pl
Adds Polish language
2015-10-09 22:03:31 -05:00
Liam Linacre
f6a3e9d452 Adds Romanian language 2015-10-08 11:21:28 +01:00
Liam Linacre
afc87e8742 Adds Polish language 2015-10-08 11:19:51 +01:00
Vance Lucas
af596cd252 Merge pull request #131 from nadeka/finnish-translation
Add Finnish language
2015-09-21 15:16:23 -05:00
Anni
dae823a2c4 Add Finnish language 2015-09-19 03:03:36 +03:00
Vance Lucas
12edc5ab0b Merge pull request #130 from adia/patch-1
validateUrlActive(): check host part of URL for correct DNS records
2015-09-17 09:22:59 -05:00
Alexandros Diamantidis
919005c0f8 Fix validateUrlActive() to check host part of URL for correct DNS records
validateUrlActive() calls checkdnsrr() which by default looks only for MX records, and passes the whole tail part of the URL after the prefix. It should isolate the host and check for A, AAAA or CNAME DNS records.
2015-09-17 13:32:20 +03:00
Vance Lucas
3681b9b76a Merge pull request #129 from salipro4ever/master
add Vietnam language
2015-08-31 13:49:12 -05:00
salipro4ever
5a5510254b Create vi.php 2015-08-28 14:14:41 +07:00
Vance Lucas
3f4829cf64 Don't tearDown twice 2015-08-06 18:49:27 -05:00
Vance Lucas
7bdc57b9c4 Fix failing urlActive test due to checkdnsrr 2015-08-06 18:47:39 -05:00
Vance Lucas
81e1b52ff0 Merge pull request #128 from popiazaza/master
Add Thai language
2015-07-29 11:17:52 -05:00
popiazaza
70356100c3 Add Thai language 2015-07-29 19:46:45 +07:00
danielfpedro
5a92357e02 Update pt-br.php 2015-07-21 16:13:30 -03:00
Nicat
8dd427ae1b Create az.php 2015-02-19 19:24:47 +04:00
Vance Lucas
d09596881b Merge pull request #117 from hiroy/update-lang-ja
Update lang/ja.php for the rule of "instanceOf"
2014-12-27 10:32:29 -06:00
Hiroyuki Yamaoka
86fe347940 Update lang/ja.php for the rule of "instanceOf" 2014-12-27 15:16:52 +09:00
Vance Lucas
c7342e025a Fix #115 strict flag for in_array v1.2.3 2014-11-20 09:24:40 -06:00
Vance Lucas
bd0f6868c8 Merge pull request #114 from cguroo/patch-1
Add optional "strict" check for "in" validator that uses "in_array()"
2014-11-19 09:12:34 -06:00
cguroo
eb12058860 Update Validator.php
Hi, I have added a strict flag as an argument since anyone who wishes a strict comparison shall have the option, and btw in_array without strict is sort of "useless" in most cases, IMHO.

heres why i say so.
http://php.net/manual/en/function.in-array.php#106319
2014-11-19 12:09:20 +05:30
Vance Lucas
e83cd2934c Language typo 2014-11-14 15:37:19 -06:00
Vance Lucas
0b2ebb9397 Merge pull request #112 from jmalinens/master
Latvian language translation fix
2014-10-27 10:06:43 -05:00
Juris Malinens
9304abb356 Latvian language translation fix 2014-10-27 14:59:58 +02:00
Vance Lucas
decdb01a8d Merge pull request #109 from GrahamCampbell/patch-1
Fixed the phpunit version constraint
2014-10-13 15:51:14 -05:00
Graham Campbell
9a5988822d Fixed the phpunit version constraint 2014-10-13 19:55:52 +01:00
Vance Lucas
f7c11ca0ab Merge pull request #107 from vandarin/checkAndSetLabel
Check and set label
2014-09-19 09:06:20 -05:00
Lane Roberts
282f4a6ac3 PHP 5.3 compatibility in array syntax 2014-09-18 11:32:30 -05:00
Lane Roberts
f8f1c0061b Fix 'Illegal offset type in isset or empty' warning when a param is an object.
Params can be any data type, but keys can only be integers or strings.
2014-09-18 11:08:28 -05:00
Lane Roberts
8f364b89a8 Add test to exhibit error behavior 2014-09-18 11:08:28 -05:00
Vance Lucas
2e8453be81 Merge pull request #105 from thinkjson/foreach-discrete
Validate an array of discrete values
v1.2.2
2014-09-08 14:55:11 -05:00