Гордиенко Владислав Юрьевич
cd64fb2dc6
Refactored BooleanValidator ( #13791 )
8 years ago
vladis84
3c1f3e20cf
Fixes #13704 : Fixed `yii\validators\UniqueValidator` to prefix attribute name with model's database table name
8 years ago
Sam
06967f9018
Fixes #13254 : Core validators no longer require Yii::$app to be set
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Alexander Makarov
3536c7c4f9
Additional fixes for #13087
8 years ago
Vladimir Reznichenko
a182ce57fc
Fixes for issues found with Static Code Analysis with Php Inspections (EA Extended) ( #13606 )
...
* Php Inspections (EA Extended): language level migration fixes
* Php Inspections (EA Extended): instanceof a trait always return false
* Php Inspections (EA Extended): fixed preg_quote (/ is not escaped by default)
* Php Inspections (EA Extended): fixed a greedy regex
* Php Inspections (EA Extended): refereted instanceof self in a trait
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): more greedy regexes fixed
8 years ago
Elvira Sheina
2de18cf9a5
Fixes #13087 : Fixed getting active validators for safe attribute
8 years ago
Nikolay Oleynikov
53d824167c
Fix a typo in a comment section ( #13569 )
8 years ago
Elvira Sheina
1ee91fe4ab
Fix BC in Exist Validator ( #13533 )
...
Related to #13318 and #13475
fixes #13533
close #13534
8 years ago
Carsten Brandt
36521c50e0
instructions on signing tag on release repo
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Carsten Brandt
1eec5c17bc
make UniqueValidator compatible with ActiveRecordInterface again
...
fixes #13485
8 years ago
Elvira Sheina
0df8020dd0
Fix for #13485
8 years ago
Elvira Sheina
d39c491022
Fix BC breaking #13475 ( #13478 )
8 years ago
Elvira Sheina
240bca515a
Use low-level query in UniqueValidator ( #13461 )
...
Fixes #13453 , relates to #13098
8 years ago
Alexander Makarov
bede9feba5
Fixes #13453 : Reverted #10896 commit 729ddc5b76
...
It was causing side effects: https://github.com/yiisoft/yii2/issues/13453
8 years ago
Alexander Makarov
3f4771b1de
Phpdoc adjustments [skip ci]
8 years ago
Elvira Sheina
b82caa97e8
Fixes #7820 : Add `or` relation for `targetAttribute` in `yii\validators\UniqueValidator`
8 years ago
Alexander Makarov
3f66f1907f
Removed unused method
8 years ago
Alexander Makarov
ebe30bd5ee
Exposed number normalization as StringHelper::normalizeNumber()
8 years ago
Klimov Paul
d4ac47abe7
Added `yii\validators\EachValidator::$stopOnFirstError` allowing addition of more than one error
8 years ago
Carsten Brandt
e13a18ba8b
added missing version information
...
fixes #13259
8 years ago
Elvira Sheina
bfba0aa711
Refactor validateAttribute method in UniqueValidator ( #13202 )
...
* Refactor validateAttribute method in UniqueValidator
Extract prepareParams and prepareQuery from validateAttribute,
so they can be tested separately.
* Added issue number to changelog
* Eliminated unneeded variable
* Renamed methods and parameters, update PHPDocs
8 years ago
SilverFire - Dmitry Naumenko
a132ee9a08
Fixed order or checks in IpValidator
...
Fixes #13198
8 years ago
Alexey Rogachev
bd85b7ced2
Closes #6242 : Access to validator in inline validation ( #13027 )
...
* Closes #6242 : Access to validator in inline validation
* Updated PHPDoc according to PR review [skip ci]
* Imrpoved PHPDoc, updated guide info [skip ci]
* Fixes related with PR review
* Corrected CHANGELOG [skip ci]
* Update input-validation.md
added version info
8 years ago
Nikola Kovacs
f5beaf3edf
Make validator getClientOptions public
...
This allows implementing custom client-side validation
without extending every validator.
Fixes #11163
close #13145
8 years ago
Alexey Rogachev
76e253e140
`yii\validators\Validator` - added separate methods for client-side validation options
...
Closes #11163
8 years ago
Alexander Makarov
242d850d6c
Shorter variable name, different approach to casting
8 years ago
Alexander Makarov
b17dfa03a2
Fixes #10488 : Fixed incorrect behavior of `yii\validation\NumberValidator` when used with locales where decimal separator is comma
8 years ago
Vladimir Khramov
dd94ead358
Initial work on #10488
8 years ago
Elvira Sheina
729ddc5b76
Select only primary keys in UniqueValidator ( #10896 ) ( #13098 )
...
fixes #10896
8 years ago
Carsten Brandt
b8b3aeeb00
update deprecated phpdoc messages
8 years ago
SilverFire - Dmitry Naumenko
332637db83
Fixed EmailValidator`to prevent false-positives checks
...
Fixed EmailValidator`to prevent false-positives checks when property `checkDns` is set to `true`
Fixes #12714
8 years ago
Robert Korulczyk
7a3a342127
Fix errors reported by apidoc extension. ( #12986 )
8 years ago
SilverFire - Dmitry Naumenko
35ce3ba611
Docs updated
...
Closes #11747
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
8 years ago
Carsten Brandt
5f821feff7
Added constants for CompareValidator::$type
...
also improved and fixed docs about 'compare' validator.
fixes #12864
8 years ago
Carsten Brandt
64ed8c9112
added note about timezone conversion to DateValidator
...
fixes #11692
8 years ago
Nikola Kovacs
1414b18835
Add short validator names `time` and `datetime`.
...
These map to `DateValidator` with `$type` set to
TYPE_TIME and TYPE_DATETIME.
close #12198
8 years ago
Carsten Brandt
89bc2918d3
Make 'safe' validator work on write-only properties
...
fixes #12605
8 years ago
DrDeath72
c42ef605db
Fixes #12554 : Fixed `yii\validators\UniqueValidator` error of getting first model indexed by field
8 years ago
SilverFire - Dmitry Naumenko
b42b8d6458
Updated PHPDoc for `Validator::createValidator()`. Closes #12564
8 years ago
SilverFire - Dmitry Naumenko
494842636e
📖 Fixed `client-side` and `server-side` grammar in all files
8 years ago
Aleksey Loban
5307d50852
Typos yii\validators\Validator::$whenClient [skip ci]
8 years ago
Robert Korulczyk
2f981c5a70
Fix BC break for `UniqueValidator` custom message when validating multiple attributes
8 years ago
Alexander Makarov
9b1b4fc5fa
Added missing phpdoc
8 years ago
Carsten Brandt
ee92cfa7ba
release version 2.0.9
8 years ago
Carsten Brandt
d2dd232b6f
message improvement and test for #11323
8 years ago
PowerGamer1
e0ace833d0
Added Error message for combined attributes to unique validator
...
- error message `$comboNotUnique` to include model attribute labels instead of attribute names.
- Fixes #11322
close #11323
8 years ago