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
Alexander Kochetov
a4e8829717
Additional RangeValidator fixes
11 years ago
Alexander Kochetov
b1ba2439a6
[WIP] Additional RangeValidator fixes
11 years ago
Qiang Xue
431d8864f9
refactored RangeValidator.
11 years ago
Alexander Kochetov
ca4a228b55
RangeValidator bugfix
11 years ago
Alexander Kochetov
3de8630fd3
Code readability fix
11 years ago
Alexander Kochetov
af09fe16df
Improve `in` validator to properly support array attributes.
11 years ago
Chong Freeman
c6e8f66e1b
Update UniqueValidator.php
11 years ago
Alexander Kochetov
49f8d45d8b
ExistValidator final refactoring. `allowArray` checking also added to `validateValue` method.
11 years ago
Alexander Kochetov
14ec7e21bd
ExistValidator::validateValue() fixed
11 years ago
Alexander Kochetov
68f65a9f7a
ExistValidator bugfix
11 years ago
Alexander Kochetov
3e94b24885
ExistValidator refactoring
11 years ago
Alexander Kochetov
252795ec94
`allowArray` introduced.
11 years ago
Alexander Kochetov
ccaa052d57
ExistValidator count logic fix
11 years ago