136 Commits

Author SHA1 Message Date
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
b3f0f7dceb Fixed typo and inconsistent conditionals 2014-07-23 22:41:35 -04:00
d1c2b137b3 Added client-side file validator 2014-07-23 22:41:35 -04:00
a2e73f9900 Fixes #4370: fileinfo extension is required for FileValidator. 2014-07-22 15:06:14 -04:00
9fd920e2d1 minor refactoring of FileValidator. 2014-07-22 11:29:04 -04:00
aabd69afcf avoid confusion about uploadRequired 2014-07-16 11:43:44 +02:00
9f08d18f96 Fixes #3020 [skip ci] 2014-06-26 22:50:57 -04:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
084819b84c refactored file validator. 2014-06-14 16:21:59 -04:00
a89d574a20 updated FileValidator , CHANGELOG.md , UPGRADE.md guides , tests fixed 2014-06-14 22:11:58 +04:00
64deaad75d undo changes 2014-06-14 21:59:10 +04:00
42643e3747 type validation adjusted 2014-06-14 12:42:12 +04:00
d5a1a74864 fixed mime type file info 2014-06-11 11:53:30 +04:00
1bad91bd4e Update FileValidator.php 2014-06-10 17:14:12 -03:00
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
2014-06-10 16:35:21 -03:00
c52c063ca6 file validator added mime - types , image validator fixed 2014-06-10 14:14:19 +04:00
01e5ffdceb guide WIP [skip ci] 2014-06-05 22:40:37 -04:00
d1e0a54553 guide WIP [skip ci] 2014-06-04 17:50:24 -04:00
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