Carsten Brandt
2a23520618
added documentation about handling date values
...
fixes #6530
fixes #5857
relates to #3973
10 years ago
Carsten Brandt
ba6bce4e2d
fixed DateValidator to work with multibyte strings
...
fixes #6835
10 years ago
Yoyon Cahyono
8b5e16ed56
compare position at which date value parsing ended with its string length to ensure validation when using php intl extension to parse date value
...
- fixes #6553
- Add additional testValidateAttributeICUFormat() test case using "2012-12-12foo" for "yyyy-MM-dd" date format
- close #6835
10 years ago
Nikolay Bogolubov
2e414632be
fix EmailValidator - added unit tests
...
close #7183
fixes #7172
10 years ago
Carsten Brandt
e83b479dfb
improved validator documentation
...
fixes #7472
10 years ago
Qiang Xue
57c298a523
Fixes #7361 : The `trim` validator now works on the client side too
10 years ago
李某某
1fb842ef5e
annotation typo
10 years ago
Alexander Makarov
9db19914ca
Used (float) instead of floatval()
10 years ago
Qiang Xue
5ab1d1a0d1
Fixes #6992 .
10 years ago
Alexander Makarov
f66b8ba571
Fixes #6589 : updated code style guide to mention else after return, adjusted code involved in the issue
10 years ago
Carsten Brandt
58becaceab
suppress warning thrown by IntlDateFormatter::parse()
...
Works around PHP Bug https://bugs.php.net/bug.php?id=68528
fixes #5962
10 years ago
Qiang Xue
d13d274d05
renamed $object to $model
10 years ago
Qiang Xue
7c48837a67
Fixes #5836 : doc fixes.
10 years ago
Alexander Makarov
48ec791e4a
Fixes #5587 : `json_encode` is now used with `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE` where it makes sense, also it is now default for `Json::encode()`
10 years ago
Alexander Makarov
02622b6fe4
phpdoc fixes and additions
10 years ago
Qiang Xue
d6b797e236
Fixes #5252 : Null values are not properly handled by `RangeValidator`
10 years ago
Carsten Brandt
3ff548a442
Refactored DateValidator to support ICU format
10 years ago
Qiang Xue
72a81b8e31
Fixes #3581 : Added `yii\validators\CompareValidator::type` to support type conversion before comparing values
10 years ago
Qiang Xue
b9b6fbc94b
Fixes #5039 : `UniqueValidator` and `ExistValidator` did not respect query conditions added by default scope
10 years ago
Qiang Xue
7ce6a8a456
Fixed typo [skip ci]
10 years ago
Alexander Makarov
11812af1c1
Fixed formatting, initialized options array
10 years ago
Qiang Xue
60e07e0d2a
new asset WIP: renabled asset publishing
10 years ago
Qiang Xue
1a62551691
new asset WIP
10 years ago
Arthur Khachaturov
5794534a26
Unused InvalidConfigException
10 years ago
Qiang Xue
2ef7eda249
Fixes #4611 .
10 years ago
Tomek Romik
24d0314928
Update docs for clientValidateAttribute()
10 years ago
Qiang Xue
6dd2203a5c
Fixes #4566 : Added client validation support for image validator
10 years ago
Tomek Romik
8c5c4c503b
Fix lines
10 years ago
Tomek Romik
ed3564c1cf
Added client-side image validation
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Alexander Makarov
0edd8bc65a
Fixed missing and incorrect phpdoc
10 years ago
Tomek Romik
b3f0f7dceb
Fixed typo and inconsistent conditionals
10 years ago
Tomek Romik
d1c2b137b3
Added client-side file validator
10 years ago
Qiang Xue
a2e73f9900
Fixes #4370 : fileinfo extension is required for FileValidator.
10 years ago
Qiang Xue
9fd920e2d1
minor refactoring of FileValidator.
10 years ago
Carsten Brandt
aabd69afcf
avoid confusion about uploadRequired
10 years ago
Qiang Xue
9f08d18f96
Fixes #3020 [skip ci]
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Qiang Xue
084819b84c
refactored file validator.
10 years ago
Mark
a89d574a20
updated FileValidator , CHANGELOG.md , UPGRADE.md guides , tests fixed
10 years ago
Mark
64deaad75d
undo changes
10 years ago
Mark
42643e3747
type validation adjusted
10 years ago
Mark
d5a1a74864
fixed mime type file info
10 years ago
MarcioCamello
1bad91bd4e
Update FileValidator.php
10 years ago
MarcioCamello
431915c439
mimeTypes Validator is wrong
...
I'm find error
```php
Wrong
} elseif (!empty($this->mimeTypes) && !in_array(FileHelper::getMimeType($file->tempName), $this->mimeTypes, true)) {
Correct
} elseif (!empty($this->mimeTypes) && !in_array(FileHelper::getMimeType($file), $this->mimeTypes, true)) {
```
Not need call '$file->tempName' because getMimeType get object $_FILE => $file, so use $file and validator works fine
10 years ago
Mark
c52c063ca6
file validator added mime - types , image validator fixed
10 years ago
Qiang Xue
01e5ffdceb
guide WIP [skip ci]
10 years ago
Qiang Xue
d1e0a54553
guide WIP [skip ci]
10 years ago
Alexander Makarov
0c02edbfca
Adjusted default validator method phpdoc
10 years ago