118 Commits

Author SHA1 Message Date
0c02edbfca Adjusted default validator method phpdoc 2014-06-01 00:26:16 +04:00
68341dd50e Merge branch 'defaultValueValidator' of github.com:Alex-Code/yii2 into Alex-Code-defaultValueValidator
Conflicts:
	framework/CHANGELOG.md
2014-05-31 12:09:45 +04:00
a4e8829717 Additional RangeValidator fixes 2014-05-23 15:26:09 +04:00
b1ba2439a6 [WIP] Additional RangeValidator fixes 2014-05-23 01:56:51 +04:00
431d8864f9 refactored RangeValidator. 2014-05-22 16:32:00 -04:00
ca4a228b55 RangeValidator bugfix 2014-05-22 21:29:18 +04:00
3de8630fd3 Code readability fix 2014-05-22 20:05:25 +04:00
af09fe16df Improve in validator to properly support array attributes. 2014-05-22 17:51:17 +04:00
c6e8f66e1b Update UniqueValidator.php 2014-05-19 15:52:54 +08:00
15904951ef Merge PR #3406 branch 'exist-validator-enhancement' of https://github.com/creocoder/yii2
* 'exist-validator-enhancement' of https://github.com/creocoder/yii2:
  ExistValidator final refactoring. `allowArray` checking also added to `validateValue` method.
  New tests added
  New tests added
  ExistValidator::validateValue() fixed
  Tests excess dump removed
  ExistValidator bugfix
  Tests updated
  ExistValidator refactoring
  CHANGELOG updated
  `allowArray` introduced.
  CHANGELOG
  ExistValidator count logic fix
  Tests updated
  Tests updated
  Tests updated
  Refactoring
  Refactoring
  Improve `exist` validator to support array attributes

Conflicts:
	framework/CHANGELOG.md
2014-05-15 10:00:06 +02:00
49f8d45d8b ExistValidator final refactoring. allowArray checking also added to validateValue method. 2014-05-14 21:18:32 +04:00
14ec7e21bd ExistValidator::validateValue() fixed 2014-05-14 17:35:24 +04:00
68f65a9f7a ExistValidator bugfix 2014-05-14 13:37:20 +04:00
3e94b24885 ExistValidator refactoring 2014-05-13 16:10:08 +04:00
252795ec94 allowArray introduced. 2014-05-12 17:34:36 +04:00
ccaa052d57 ExistValidator count logic fix 2014-05-09 18:57:00 +04:00
46add80ac2 Add missing Exception when wrong validator is used 2014-05-09 16:28:11 +02:00
fe5376ff7d Refactoring 2014-05-08 20:16:48 +04:00
8188cc78d3 Refactoring 2014-05-08 20:07:27 +04:00
3eb257c302 Improve exist validator to support array attributes 2014-05-08 19:47:00 +04:00
b65b0ce591 better exception message for non existing validator 2014-05-07 13:09:39 +02:00
7ff1f4ae33 Update DefaultValueValidator.php 2014-05-06 17:14:15 +01:00
7dfd210b79 Update DefaultValueValidator.php
Allow the default value to be a closure
2014-05-06 15:56:02 +01:00
91965fd391 phpdoc formatting issues 2014-04-23 02:55:17 +02:00
83a63f2346 fixed wrong client validation issue in numbervalidator
fixes #3118
2014-04-23 01:29:53 +02:00
c1445871f4 Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
2014-04-16 19:29:07 -03:00
f2d5ddab4f Update UniqueValidator.php 2014-04-14 11:40:01 +03:00
c6e1a2f02f Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2: (79 commits)
  Refactored app bootstrap logic.
  Update authorization.md
  Fixes #3052: Fixed the issue that cache dependency data is not reused when `reusable` is set true
  start debug logging only if debug runs when bootstrap.
  Update finnish translation
  Add ODBC support to yii\db\Connection
  updated error handler and requirement checker links.
  fixed broken API links [skip ci]
  added more doc [skip ci]
  update class map.
  Fixes #2034: Added `ContentNegotiator` to support response format and language negotiation
  renamed attributes to attributeNames in model
  updated phpdoc
  Removed `Application::preload` in favor of `Application::bootstrap`
  Update module-debug.md
  Update model.md
  Fixes
  Update basics.md
  typo fix [skip ci]
  Added `HtmlResponseFormatter` and `JsonResponseFormatter`
  ...
2014-04-10 22:22:36 +02:00
3c400dbca8 fixed file PHPdoc
issue #3026
2014-04-10 22:10:59 +02:00
a16c2eb653 Use proper error message. 2014-04-07 19:52:30 -04:00
435747cf98 apidoc and codestyle fixes 2014-03-26 23:03:18 +01:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
d1363d9684 Added Validator::whenClient. 2014-03-22 21:21:33 -04:00
7ea52fb262 Implemented conditional validators (see #2406) 2014-03-19 11:43:31 +01:00
0361efbb31 small typo fix 2014-03-17 16:12:45 +02:00
202e3ae0ca Fixed typo in FilterValidator for skipping array values. 2014-03-16 18:27:19 +05:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
da48b37856 Fixes #2756: Added support for injecting custom isEmpty check for all validators 2014-03-14 23:45:35 -04:00
cc08492b08 Fixes #2729: Added FilterValidator::skipOnArray so that filters like trim will not fail for array inputs 2014-03-14 23:22:43 -04:00
2e84fcb0b0 Update FileValidator.php
fix tabs
2014-03-10 23:17:29 +05:00
b3b9bd353e fix isEmpty method for file validator. 2014-03-10 23:10:47 +05:00
e2aacad8aa Added links to PHP.net to apidoc 2014-03-07 19:41:43 +01:00
6d72c6a723 fix code style 2014-03-04 06:27:22 +02:00
112f67d20a fix code style There must be one blank line after the namespace declaration 2014-03-04 05:39:17 +02:00
33d6acba25 Improved behavior support, fixes #2550
call hasMethod() instead of using method_exists
2014-02-26 14:18:24 +01:00
928df00951 fixed validation message translation [skip ci] 2014-02-08 18:19:42 -05:00
b64f618545 refactored file validator. 2014-02-01 09:15:40 -05:00
807223efbf Fixes #1412 2014-01-31 21:48:46 -05:00
a4a72033d6 Fixes #1412: FileValidator still triggers uploadRequired error in some case when skipOnEmpty is true and no upload is provided 2014-01-31 17:19:56 -05:00
262189533a huge amount of documentation link fixes 2014-01-28 17:54:40 +01:00